only override qemu-user

This commit is contained in:
Henry Hiles 2026-11-03 17:59:42 -05:00
commit 22e3c7ca6d
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -3,9 +3,14 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
(_: super: { (_: super: {
# Because of https://github.com/NixOS/nixpkgs/pull/378579 # Because of https://github.com/NixOS/nixpkgs/pull/378579
qemu = super.qemu.overrideAttrs (old: { # Only qemu-user is patched (binfmt uses it), so full qemu stays cached
patches = (old.patches or [ ]) ++ [ ./qemu.patch ]; qemu-user =
}); (super.qemu-user.override {
hostCpuTargets = [ "aarch64-linux-user" ];
}).overrideAttrs
(old: {
patches = (old.patches or [ ]) ++ [ ./qemu.patch ];
});
}) })
]; ];
} }