diff options
author | Cole Helbling <cole.e.helbling@outlook.com> | 2022-11-01 08:29:45 -0700 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2022-11-02 08:54:07 -0700 |
commit | aaef5af8b94f27c9c94741f5a6ebe6ccc44c9bb3 (patch) | |
tree | 6299968aeca80e087a9038c40ae9872379b0baa1 /pkgs/tools/security/doas | |
parent | b12db0624fe5b515afed7cc53ee45bbde436bb1b (diff) |
doas: fix no-pam build with libxcrypt
Diffstat (limited to 'pkgs/tools/security/doas')
-rw-r--r-- | pkgs/tools/security/doas/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/security/doas/default.nix b/pkgs/tools/security/doas/default.nix index 29c23bbef2797..489bf2bb2aa3b 100644 --- a/pkgs/tools/security/doas/default.nix +++ b/pkgs/tools/security/doas/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , bison , pam +, libxcrypt , withPAM ? true , withTimestamp ? true @@ -38,7 +39,9 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ bison ]; - buildInputs = [ pam ]; + buildInputs = [ ] + ++ lib.optional withPAM pam + ++ lib.optional (!withPAM) libxcrypt; meta = with lib; { description = "Executes the given command as another user"; |