shadow: fix build with libxcrypt
This commit is contained in:
parent
5df544acc2
commit
74424224fd
|
@ -1,6 +1,6 @@
|
|||
{ lib, stdenv, nixosTests, fetchpatch, fetchFromGitHub, autoreconfHook, libxslt
|
||||
, libxml2 , docbook_xml_dtd_45, docbook_xsl, itstool, flex, bison, runtimeShell
|
||||
, pam ? null, glibcCross ? null
|
||||
, libxcrypt, pam ? null, glibcCross ? null
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -28,7 +28,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-PxLX5V0t18JftT5wT41krNv18Ew7Kz3MfZkOi/80ODA=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optional (pam != null && stdenv.isLinux) pam;
|
||||
buildInputs = [ libxcrypt ]
|
||||
++ lib.optional (pam != null && stdenv.isLinux) pam;
|
||||
nativeBuildInputs = [autoreconfHook libxslt libxml2
|
||||
docbook_xml_dtd_45 docbook_xsl flex bison itstool
|
||||
];
|
||||
|
@ -62,6 +63,8 @@ stdenv.mkDerivation rec {
|
|||
configureFlags = [
|
||||
"--enable-man"
|
||||
"--with-group-name-max-length=32"
|
||||
"--with-bcrypt"
|
||||
"--with-yescrypt"
|
||||
] ++ lib.optional (stdenv.hostPlatform.libc != "glibc") "--disable-nscd";
|
||||
|
||||
preBuild = lib.optionalString (stdenv.hostPlatform.libc == "glibc")
|
||||
|
|
Loading…
Reference in a new issue