Add nix derivation
This commit is contained in:
parent
0fc4c2ef0c
commit
fdbec31b6c
2 changed files with 20 additions and 0 deletions
17
default.nix
Normal file
17
default.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
|
@ -30,6 +30,9 @@
|
||||||
pkgs.rustPlatform.bindgenHook
|
pkgs.rustPlatform.bindgenHook
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
packages = {
|
||||||
|
default = pkgs.callPackage ./default.nix {};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue