Merge pull request #160408 from r-burns/linux-pam-from-darwin

pam: fix cross-compilation from darwin
This commit is contained in:
Guillaume Girol 2022-03-06 15:32:25 +00:00 committed by GitHub
commit dfd24b1450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ flex ]
++ lib.optional stdenv.buildPlatform.isDarwin gettext;
buildInputs = [ cracklib db4 audit ]
buildInputs = [ cracklib db4 ]
++ lib.optional stdenv.buildPlatform.isLinux audit
++ lib.optional withLibxcrypt libxcrypt;
enableParallelBuilding = true;