diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-13 20:35:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 20:35:08 +0200 |
commit | 88e3f34ff3bbdeff91449eee7e1f4ca40da09c88 (patch) | |
tree | 82f2c233b11b17fa38265a27eb69160404c2e96d /pkgs/by-name/qu | |
parent | 69370a13596ac7f59c8ac94947e6be47e2eee56a (diff) | |
parent | 1fe0639a8bf30c22f2ca2e33a77576e4055b5231 (diff) |
Merge pull request #316758 from eclairevoyant/quickemu
quickemu: decrease windows ram requirements and nixfmt
Diffstat (limited to 'pkgs/by-name/qu')
-rw-r--r-- | pkgs/by-name/qu/quickemu/package.nix | 82 |
1 files changed, 50 insertions, 32 deletions
diff --git a/pkgs/by-name/qu/quickemu/package.nix b/pkgs/by-name/qu/quickemu/package.nix index 9280eaa990074..b650ef91f88ec 100644 --- a/pkgs/by-name/qu/quickemu/package.nix +++ b/pkgs/by-name/qu/quickemu/package.nix @@ -1,32 +1,34 @@ -{ lib -, fetchFromGitHub -, stdenv -, makeWrapper -, cdrtools -, curl -, gawk -, gnugrep -, gnused -, jq -, ncurses -, pciutils -, procps -, python3 -, qemu -, socat -, spice-gtk -, swtpm -, usbutils -, util-linux -, unzip -, xdg-user-dirs -, xrandr -, zsync -, OVMF -, OVMFFull -, quickemu -, testers -, installShellFiles +{ + lib, + fetchFromGitHub, + stdenv, + makeWrapper, + cdrtools, + curl, + gawk, + gnugrep, + gnused, + jq, + ncurses, + pciutils, + procps, + python3, + qemu, + socat, + spice-gtk, + swtpm, + usbutils, + util-linux, + unzip, + xdg-user-dirs, + xrandr, + zsync, + OVMF, + OVMFFull, + quickemu, + testers, + installShellFiles, + fetchpatch2, }: let runtimePaths = [ @@ -52,7 +54,7 @@ let ]; in -stdenv.mkDerivation (finalAttrs : { +stdenv.mkDerivation (finalAttrs: { pname = "quickemu"; version = "4.9.4"; @@ -72,7 +74,20 @@ stdenv.mkDerivation (finalAttrs : { quickemu ''; - nativeBuildInputs = [ makeWrapper installShellFiles ]; + patches = [ + # reduces windows vm ram requirements to 4G, to match microsoft recommendations + # TODO: remove on next release + (fetchpatch2 { + name = "decrease-windows-ram-requirements.patch"; + url = "https://github.com/quickemu-project/quickemu/commit/f51697593a4650c5486661292e2febe1d16f8c71.patch"; + hash = "sha256-J5hIvQGtkufOcjk2FZN65iox/W2zkLlg+Veg9TF11Fs="; + }) + ]; + + nativeBuildInputs = [ + makeWrapper + installShellFiles + ]; installPhase = '' runHook preInstall @@ -98,6 +113,9 @@ stdenv.mkDerivation (finalAttrs : { homepage = "https://github.com/quickemu-project/quickemu"; mainProgram = "quickemu"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ fedx-sudo flexiondotorg ]; + maintainers = with lib.maintainers; [ + fedx-sudo + flexiondotorg + ]; }; }) |