shadow: disable nscd on non-glibc (musl)

This commit is contained in:
Will Dietz 2018-01-09 17:39:54 -06:00
parent cb5453e13a
commit b9b57dada7

View File

@ -60,9 +60,10 @@ stdenv.mkDerivation rec {
configureFlags="$configureFlags --with-xml-catalog=$PWD/xmlcatalog ";
'';
configureFlags = " --enable-man ";
configureFlags = " --enable-man "
+ stdenv.lib.optionalString (hostPlatform.libc != "glibc") " --disable-nscd ";
preBuild = assert glibc != null;
preBuild = stdenv.lib.optionalString (hostPlatform.libc == "glibc")
''
substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc.bin}/bin/nscd
'';