mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03: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