diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index 7e0e216c94ce..0edba1c5f008 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -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 + # + rm -f $out/nix-support/propagated-build-inputs ''; preBuild = "cd build";