pam: Make libxcrypt a non-optional dependency

Our PAM configuration now defaults to yescrypt, which requires
libxcrypt.
This commit is contained in:
Martin Weinelt 2023-03-12 17:58:19 +01:00
parent 0d7cd66652
commit 909f394f28
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,6 +1,5 @@
{ lib, stdenv, buildPackages, fetchurl, flex, cracklib, db4, gettext, audit
{ lib, stdenv, buildPackages, fetchurl, flex, cracklib, db4, gettext, audit, libxcrypt
, nixosTests
, withLibxcrypt ? true, libxcrypt
}:
stdenv.mkDerivation rec {
@ -20,9 +19,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ flex ]
++ lib.optional stdenv.buildPlatform.isDarwin gettext;
buildInputs = [ cracklib db4 ]
++ lib.optional stdenv.buildPlatform.isLinux audit
++ lib.optional withLibxcrypt libxcrypt;
buildInputs = [ cracklib db4 libxcrypt ]
++ lib.optional stdenv.buildPlatform.isLinux audit;
enableParallelBuilding = true;