only override qemu-user
This commit is contained in:
parent
a74ffeb039
commit
22e3c7ca6d
1 changed files with 8 additions and 3 deletions
|
|
@ -3,7 +3,12 @@
|
||||||
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
|
||||||
|
qemu-user =
|
||||||
|
(super.qemu-user.override {
|
||||||
|
hostCpuTargets = [ "aarch64-linux-user" ];
|
||||||
|
}).overrideAttrs
|
||||||
|
(old: {
|
||||||
patches = (old.patches or [ ]) ++ [ ./qemu.patch ];
|
patches = (old.patches or [ ]) ++ [ ./qemu.patch ];
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue