shadow: unbreak cross eval (#414576)
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
tcb,
|
||||
}:
|
||||
let
|
||||
glibc =
|
||||
glibc' =
|
||||
if stdenv.hostPlatform != stdenv.buildPlatform then
|
||||
glibc
|
||||
else
|
||||
@@ -100,7 +100,7 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withTcb "--with-tcb";
|
||||
|
||||
preBuild = lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
|
||||
substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc.bin}/bin/nscd
|
||||
substituteInPlace lib/nscd.c --replace /usr/sbin/nscd ${glibc'.bin}/bin/nscd
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
||||
Reference in New Issue
Block a user