Skip to content

Commit fd9f5db

Browse files
committed
qemu: pick pkgs/buildPackages depending on cpu emulation
Fixes Github issue #371.
1 parent b5c0b6d commit fd9f5db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/runner.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let
3131
then
3232
# When cross-compiling for a target host, select packages for
3333
# the target:
34-
pkgs.hostPackages
34+
pkgs
3535
else
3636
# When cross-compiling for CPU emulation in qemu, select
3737
# packages for the host:

lib/runners/qemu.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let
4040
if microvmConfig.cpu == null
4141
then
4242
# When cross-compiling for a target host, select qemu for the target:
43-
pkgs.hostPackages.qemu_kvm
43+
pkgs.qemu_kvm
4444
else
4545
# When cross-compiling for CPU emulation, select qemu for the host:
4646
pkgs.buildPackages.qemu;

0 commit comments

Comments
 (0)