From 8ef0926614ec7a055ee50afd16aa3a5f1ac1a324 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 10 Sep 2023 11:59:47 +0000 Subject: [PATCH] cross: build in qemu using stock linux this allows faster iteration of linux-megous kernel --- overlays/cross.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/overlays/cross.nix b/overlays/cross.nix index 8670c887..d33bf848 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -141,9 +141,10 @@ let # given a package that's defined for build == host, # build it from the native build machine by emulating the builder. emulateBuilderQemu = pkg: let - vmTools = final.vmTools.override { - kernel = final.linux-megous or final.linux; #< HACK: guess at whatever deployed linux we're using, to avoid building two kernels - }; + inherit (final) vmTools; + # vmTools = final.vmTools.override { + # kernel = final.linux-megous or final.linux; #< HACK: guess at whatever deployed linux we're using, to avoid building two kernels + # }; # fix up the nixpkgs command that runs a Linux OS inside QEMU: # qemu_kvm doesn't support x86_64 -> aarch64; but full qemu package does. qemuCommandLinux = lib.replaceStrings