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:
Eelco Dolstra 2017-07-25 14:19:31 +02:00
parent ecaef62bd9
commit b9c403c531
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -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 "";