mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
shadow: disable nscd on non-glibc (musl)
This commit is contained in:
parent
cb5453e13a
commit
b9b57dada7
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user