qemu: add workaround for static build closure pulling in buildinput (#83667)

This commit is contained in:
Julius Michaelis 2024-06-05 23:27:57 +09:00 committed by Alyssa Ross
parent 6e81b41ce7
commit aa4e34969b

View File

@ -223,6 +223,11 @@ stdenv.mkDerivation (finalAttrs: {
for f in $out/bin/qemu-system-*; do
wrapGApp $f
done
'' + lib.optionalString stdenv.hostPlatform.isStatic ''
# HACK: Otherwise the result will have the entire buildInputs closure
# injected by the pkgsStatic stdenv
# <https://github.com/NixOS/nixpkgs/issues/83667>
rm -f $out/nix-support/propagated-build-inputs
'';
preBuild = "cd build";