Skip to content

Commit

Permalink
Remove xcompile overlay for qemu
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
  • Loading branch information
brianmcgillion committed May 24, 2024
1 parent 3365a6d commit d96acef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ in {

# TODO: Consider are these really needed, maybe add only in debug builds?
environment.systemPackages = with pkgs; [
qemu
qemu_kvm
dtc
];
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
(_final: prev: {
qemu = prev.qemu.overrideAttrs (_final: prev: {
qemu_kvm = prev.qemu_kvm.overrideAttrs (_final: prev: {
patches =
prev.patches
++ [
Expand Down
2 changes: 0 additions & 2 deletions overlays/cross-compilation/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@
edk2 = import ./edk2 {inherit final prev;};
jbig2dec = import ./jbig2dec {inherit prev;};
pipewire = import ./pipewire {inherit prev;};

qemu = import ./qemu {inherit prev;};
})
9 changes: 0 additions & 9 deletions overlays/cross-compilation/qemu/default.nix

This file was deleted.

10 changes: 5 additions & 5 deletions packages/windows-launcher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
stdenvNoCC,
lib,
stdenv,
qemu,
qemu_kvm,
OVMF,
yad,
writeShellScript,
Expand Down Expand Up @@ -57,7 +57,7 @@
ISO_FILE=$1
IMG_FILE="$IMG_DIR/win11.qcow2"
if [ ! -f $IMG_FILE ]; then
${qemu}/bin/qemu-img create -f qcow2 $IMG_FILE 64G
${qemu_kvm}/bin/qemu-img create -f qcow2 $IMG_FILE 64G
fi
fi
''
Expand Down Expand Up @@ -108,7 +108,7 @@
fi
''
+ ''
eval "${qemu}/bin/qemu_kvm ''${QEMU_PARAMS[@]} ''${@:2}"
eval "${qemu_kvm}/bin/qemu_kvm ''${QEMU_PARAMS[@]} ''${@:2}"
'');
windowsLauncherUI =
writeShellScript
Expand Down Expand Up @@ -150,7 +150,7 @@ in
stdenvNoCC.mkDerivation {
name = "windows-launcher";

buildInputs = [yad qemu OVMF];
buildInputs = [yad qemu_kvm OVMF];

phases = ["installPhase"];

Expand All @@ -160,7 +160,7 @@ in
cp ${windowsLauncherUI} $out/bin/windows-launcher-ui
'';

meta = with lib; {
meta = {
description = "Helper scripts for launching Windows virtual machines using QEMU";
platforms = [
"x86_64-linux"
Expand Down

0 comments on commit d96acef

Please sign in to comment.