shadow: unbreak cross eval (#414576)

This commit is contained in:
Peder Bergebakken Sundt
2025-06-06 21:40:51 +02:00
committed by GitHub
+2 -2
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 = ''