mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
shadow: unbreak cross eval (#414576)
This commit is contained in:
commit
6004e03fa8
1 changed files with 2 additions and 2 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue