1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 17:46:29 +09:00

shadow: unbreak cross eval (#414576)

This commit is contained in:
Peder Bergebakken Sundt 2025-06-06 21:40:51 +02:00 committed by GitHub
commit 6004e03fa8
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -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 = ''