Skip to content

Commit 4e8cb26

Browse files
SuperSandro2000astro
authored andcommitted
qemu: remove edk2 removal for arm only
This missed some similar files for other arches (longarch, riscv, aarch64) and causes a cache miss as optimize is on per default. If closure size is really important for you, please use a local overlay instead.
1 parent c7fe910 commit 4e8cb26

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/runners/qemu.nix

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,12 @@ let
1919
]);
2020
});
2121

22-
minimizeQemuClosureSize = pkg: (pkg.override (oa: {
22+
minimizeQemuClosureSize = pkg: pkg.override (oa: {
2323
# standin for disabling everything guilike by hand
2424
nixosTestRunner =
2525
if graphics.enable
2626
then oa.nixosTestRunner or false
2727
else true;
28-
})).overrideAttrs (oa: {
29-
postFixup = ''
30-
${oa.postFixup or ""}
31-
# This particular firmware causes 192mb of closure size
32-
${lib.optionalString (system != "aarch64-linux") "rm -rf $out/share/qemu/edk2-arm-*"}
33-
'';
3428
});
3529

3630
overrideQemu = x: lib.pipe x (

0 commit comments

Comments
 (0)