pkgs/os-specific: stdenv.lib -> lib
This commit is contained in:
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "13407r6qwss00504qy740jghb2dzd561la7dhp47rg8w3g8jarpn";
|
||||
};
|
||||
|
||||
buildInputs = stdenv.lib.optional (pam != null && stdenv.isLinux) pam;
|
||||
buildInputs = lib.optional (pam != null && stdenv.isLinux) pam;
|
||||
nativeBuildInputs = [autoreconfHook libxslt libxml2
|
||||
docbook_xml_dtd_45 docbook_xsl flex bison itstool
|
||||
];
|
||||
@@ -59,9 +59,9 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = [
|
||||
"--enable-man"
|
||||
"--with-group-name-max-length=32"
|
||||
] ++ stdenv.lib.optional (stdenv.hostPlatform.libc != "glibc") "--disable-nscd";
|
||||
] ++ lib.optional (stdenv.hostPlatform.libc != "glibc") "--disable-nscd";
|
||||
|
||||
preBuild = stdenv.lib.optionalString (stdenv.hostPlatform.libc == "glibc")
|
||||
preBuild = lib.optionalString (stdenv.hostPlatform.libc == "glibc")
|
||||
''
|
||||
substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc.bin}/bin/nscd
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user