Add nix derivation

This commit is contained in:
Tim Schubert 2024-12-28 21:33:49 +01:00
parent 0fc4c2ef0c
commit fdbec31b6c
Signed by: dadada
SSH key fingerprint: SHA256:bFAjFH3hR8zRBaJjzQDjc3o4jqoq5EZ87l+KXEjxIz0
2 changed files with 20 additions and 0 deletions

17
default.nix Normal file
View file

@ -0,0 +1,17 @@
{
pam,
pkg-config,
rustPlatform,
}:
rustPlatform.buildRustPackage {
name = "pam_honeypot";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = [
pam
pkg-config
];
}

View file

@ -30,6 +30,9 @@
pkgs.rustPlatform.bindgenHook
];
};
packages = {
default = pkgs.callPackage ./default.nix {};
};
}
);
}