Commit aa4e3496 authored by Julius Michaelis's avatar Julius Michaelis Committed by Alyssa Ross
Browse files

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

parent 6e81b41c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";