3
0
Fork 0
forked from mirrors/nixpkgs

shadow: fix build with libxcrypt

This commit is contained in:
Franz Pletz 2022-09-24 20:38:09 +02:00 committed by Martin Weinelt
parent 5df544acc2
commit 74424224fd
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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")