diff options
| author | matthewcroughan <matt@croughan.sh> | 2024-07-08 16:40:01 +0100 |
|---|---|---|
| committer | matthewcroughan <matt@croughan.sh> | 2024-07-08 19:47:08 +0100 |
| commit | 65c851cd7523c669b8fb25236b1c48283a2f43ec (patch) | |
| tree | 5965b1093256ccb1367e7b08b51ea4c3ff03376f | |
| parent | Merge pull request #325179 from gador/xlib-move-nose (diff) | |
| download | nixpkgs-65c851cd7523c669b8fb25236b1c48283a2f43ec.tar.gz | |
vmTools: allow qemu to be overridden via customQemu argument
| -rw-r--r-- | pkgs/build-support/vm/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index 871f81bb5d69..7ba67af5cf5a 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -1,5 +1,6 @@ { lib , pkgs +, customQemu ? null , kernel ? pkgs.linux , img ? pkgs.stdenv.hostPlatform.linux-kernel.target , storeDir ? builtins.storeDir @@ -218,7 +219,7 @@ rec { qemuCommandLinux = '' - ${qemu-common.qemuBinary qemu} \ + ${if (customQemu != null) then customQemu else (qemu-common.qemuBinary qemu)} \ -nographic -no-reboot \ -device virtio-rng-pci \ -virtfs local,path=${storeDir},security_model=none,mount_tag=store \ |
