From 265e6a668e97e00e2189d24bc57f66540cdb4b1d Mon Sep 17 00:00:00 2001 From: illustris Date: Sun, 21 Aug 2022 11:35:49 +0530 Subject: [PATCH] nixos/proxmox-image: qemu 6.2.0 -> 7.0.0 and fix failing build --- .../modules/virtualisation/proxmox-image.nix | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/nixos/modules/virtualisation/proxmox-image.nix b/nixos/modules/virtualisation/proxmox-image.nix index 4076d68b93ef..e27a466fc7a8 100644 --- a/nixos/modules/virtualisation/proxmox-image.nix +++ b/nixos/modules/virtualisation/proxmox-image.nix @@ -129,21 +129,16 @@ with lib; # Build qemu with PVE's patch that adds support for the VMA format vma = pkgs.qemu_kvm.overrideAttrs ( super: rec { - # proxmox's VMA patch doesn't work with qemu 7.0 yet - version = "6.2.0"; - src = pkgs.fetchurl { - url= "https://download.qemu.org/qemu-${version}.tar.xz"; - hash = "sha256-aOFdjkWsVjJuC5pK+otJo9/oq6NIgiHQmMhGmLymW0U="; - }; - - patches = let - rev = "b37b17c286da3d32945fbee8ee4fd97a418a50db"; - path = "debian/patches/pve/0026-PVE-Backup-add-vma-backup-format-code.patch"; - vma-patch = pkgs.fetchpatch { - url = "https://git.proxmox.com/?p=pve-qemu.git;a=blob_plain;h=${rev};f=${path}"; - hash = "sha256-siuDWDUnM9Zq0/L2Faww3ELAOUHhVIHu5RAQn6L4Atc="; - }; - in [ vma-patch ]; + patches = [ + (pkgs.fetchpatch { + url = + let + rev = "1976ca460796f28447b41e3618e5c1e234035dd5"; + path = "debian/patches/pve/0026-PVE-Backup-add-vma-backup-format-code.patch"; + in "https://git.proxmox.com/?p=pve-qemu.git;a=blob_plain;hb=${rev};f=${path}"; + hash = "sha256-2Dz+ceTwrcyYYxi76RtyY3v15/2pwGcDhFuoZWlgbjc="; + }) + ]; buildInputs = super.buildInputs ++ [ pkgs.libuuid ];