diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..b18beb1 --- /dev/null +++ b/default.nix @@ -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 + ]; +} diff --git a/flake.nix b/flake.nix index e8eeca3..fb4b68a 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,9 @@ pkgs.rustPlatform.bindgenHook ]; }; + packages = { + default = pkgs.callPackage ./default.nix {}; + }; } ); }