stdenvLinux: Remove bootstrapTools from closure
The "expand-response-params" program had an unnecessary reference to bootstrapTools, bloating the closure from 205 to 314 MiB.
This commit is contained in:
parent
ecaef62bd9
commit
b9c403c531
@ -130,6 +130,8 @@ let
|
||||
# Work around "stdenv-darwin-boot-2 is not allowed to refer to path /nix/store/...-expand-response-params.c"
|
||||
cp "$src" expand-response-params.c
|
||||
"$CC" -std=c99 -O3 -o "$out" expand-response-params.c
|
||||
strip -S $out
|
||||
${optionalString hostPlatform.isLinux "patchelf --shrink-rpath $out"}
|
||||
'';
|
||||
} else "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user