Commit aaef5af8 authored by Cole Helbling's avatar Cole Helbling
Browse files

doas: fix no-pam build with libxcrypt

parent b12db062
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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";