virtualbox: 7.1.12 -> 7.2.0 (#435491)

authored by Fabián Heredia Montiel and committed by GitHub c46f18df cee321e6

+17 -55
+12 -19
pkgs/applications/virtualization/virtualbox/default.nix
··· 72 buildType = "release"; 73 # Use maintainers/scripts/update.nix to update the version and all related hashes or 74 # change the hashes in extpack.nix and guest-additions/default.nix as well manually. 75 - virtualboxVersion = "7.1.12"; 76 virtualboxSubVersion = ""; 77 - virtualboxSha256 = "6f9618f39168898134975f51df7c2d6d5129c0aa82b6ae11cf47f920c70df276"; 78 79 - kvmPatchVersion = "20250207"; 80 - kvmPatchHash = "sha256-GzRLIXhzWL1NLvaGKcWVBCdvay1IxgJUE4koLX1ze7Y="; 81 82 # The KVM build is not compatible to VirtualBox's kernel modules. So don't export 83 # modsrc at all. ··· 231 # No update patch disables check for update function 232 # https://bugs.launchpad.net/ubuntu/+source/virtualbox-ose/+bug/272212 233 (fetchpatch { 234 - url = "https://salsa.debian.org/pkg-virtualbox-team/virtualbox/-/raw/42a1ca1291fde365bfba140cb21a8a074aaccce2/debian/patches/16-no-update.patch"; 235 - hash = "sha256-qM2e4DkkpmA18Z76OUsnY1MhcGb1dT2PG68JUy6fZEE="; 236 }) 237 ] 238 ++ [ ./extra_symbols.patch ] ··· 250 ) 251 # While the KVM patch should not break any other behavior if --with-kvm is not specified, 252 # we don't take any chances and only apply it if people actually want to use KVM support. 253 - ++ optional enableKvm ( 254 - let 255 - patchVboxVersion = 256 - # There is no updated patch for 7.1.12 yet, but the older one still applies. 257 - if finalAttrs.virtualboxVersion == "7.1.12" then "7.1.6" else finalAttrs.virtualboxVersion; 258 - in 259 - fetchpatch { 260 - name = "virtualbox-${finalAttrs.virtualboxVersion}-kvm-dev-${finalAttrs.kvmPatchVersion}.patch"; 261 - url = "https://github.com/cyberus-technology/virtualbox-kvm/releases/download/dev-${finalAttrs.kvmPatchVersion}/kvm-backend-${patchVboxVersion}-dev-${finalAttrs.kvmPatchVersion}.patch"; 262 - hash = finalAttrs.kvmPatchHash; 263 - } 264 - ) 265 ++ [ 266 ./qt-dependency-paths.patch 267 # https://github.com/NixOS/nixpkgs/issues/123851 268 ./fix-audio-driver-loading.patch 269 - ./fix-graphics-driver-loading.patch 270 ]; 271 272 postPatch = ''
··· 72 buildType = "release"; 73 # Use maintainers/scripts/update.nix to update the version and all related hashes or 74 # change the hashes in extpack.nix and guest-additions/default.nix as well manually. 75 + virtualboxVersion = "7.2.0"; 76 virtualboxSubVersion = ""; 77 + virtualboxSha256 = "4f2804ff27848ea772aee6b637bb1e10ee74ec2da117c257413e2d2c4f670ba0"; 78 79 + kvmPatchVboxVersion = "7.2.0"; 80 + kvmPatchVersion = "20250903"; 81 + kvmPatchHash = "sha256-JTE9Kr+nJ6HLeDrzL2EVyDQhxzn3UsoQVIQ6zNCwioY="; 82 83 # The KVM build is not compatible to VirtualBox's kernel modules. So don't export 84 # modsrc at all. ··· 232 # No update patch disables check for update function 233 # https://bugs.launchpad.net/ubuntu/+source/virtualbox-ose/+bug/272212 234 (fetchpatch { 235 + url = "https://salsa.debian.org/pkg-virtualbox-team/virtualbox/-/raw/8028d88e6876ca5977de13c58b54e243229efe98/debian/patches/16-no-update.patch"; 236 + hash = "sha256-AGtFsRjwd8Yw296eqX3NC2TUptAhpFTRaOMutiheQ6Y="; 237 }) 238 ] 239 ++ [ ./extra_symbols.patch ] ··· 251 ) 252 # While the KVM patch should not break any other behavior if --with-kvm is not specified, 253 # we don't take any chances and only apply it if people actually want to use KVM support. 254 + ++ optional enableKvm (fetchpatch { 255 + name = "virtualbox-${finalAttrs.virtualboxVersion}-kvm-dev-${finalAttrs.kvmPatchVersion}.patch"; 256 + url = "https://github.com/cyberus-technology/virtualbox-kvm/releases/download/dev-${finalAttrs.kvmPatchVersion}/kvm-backend-${kvmPatchVboxVersion}-dev-${finalAttrs.kvmPatchVersion}.patch"; 257 + hash = finalAttrs.kvmPatchHash; 258 + }) 259 ++ [ 260 ./qt-dependency-paths.patch 261 # https://github.com/NixOS/nixpkgs/issues/123851 262 ./fix-audio-driver-loading.patch 263 ]; 264 265 postPatch = ''
+2 -2
pkgs/applications/virtualization/virtualbox/extpack.nix
··· 4 virtualbox, 5 }: 6 let 7 - virtualboxExtPackVersion = "7.1.12"; 8 in 9 fetchurl rec { 10 name = "Oracle_VirtualBox_Extension_Pack-${virtualboxExtPackVersion}.vbox-extpack"; ··· 14 # Thus do not use `nix-prefetch-url` but instead plain old `sha256sum`. 15 # Checksums can also be found at https://www.virtualbox.org/download/hashes/${version}/SHA256SUMS 16 let 17 - value = "c7ed97f4755988ecc05ec633475e299bbc1e0418cc3d143747a45c99df53abd3"; 18 in 19 assert (builtins.stringLength value) == 64; 20 value;
··· 4 virtualbox, 5 }: 6 let 7 + virtualboxExtPackVersion = "7.2.0"; 8 in 9 fetchurl rec { 10 name = "Oracle_VirtualBox_Extension_Pack-${virtualboxExtPackVersion}.vbox-extpack"; ··· 14 # Thus do not use `nix-prefetch-url` but instead plain old `sha256sum`. 15 # Checksums can also be found at https://www.virtualbox.org/download/hashes/${version}/SHA256SUMS 16 let 17 + value = "8a44f3eeaf9bb71fab297bf4b3d38bd1bc55243f3c1a12bfb0e8d78170f949a0"; 18 in 19 assert (builtins.stringLength value) == 64; 20 value;
-13
pkgs/applications/virtualization/virtualbox/fix-graphics-driver-loading.patch
··· 1 - diff --git a/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp b/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp 2 - index 1a43382..c376d6e 100644 3 - --- a/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp 4 - +++ b/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp 5 - @@ -3376,7 +3376,7 @@ static DECLCALLBACK(int) vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, P 6 - AssertReturn(pBackend, VERR_NO_MEMORY); 7 - pThisCC->svga.p3dState->pBackend = pBackend; 8 - 9 - - rc = RTLdrLoadSystem(VBOX_D3D11_LIBRARY_NAME, /* fNoUnload = */ true, &pBackend->hD3D11); 10 - + rc = RTLdrLoad(VBOX_D3D11_LIBRARY_NAME, &pBackend->hD3D11); 11 - AssertRC(rc); 12 - if (RT_SUCCESS(rc)) 13 - {
···
+1 -1
pkgs/applications/virtualization/virtualbox/guest-additions-iso/default.nix
··· 5 }: 6 fetchurl { 7 url = "http://download.virtualbox.org/virtualbox/${virtualboxVersion}/VBoxGuestAdditions_${virtualboxVersion}.iso"; 8 - sha256 = "256883e2eabf7ab5c10fb3b6831c294942ce34bc615807f9d0cf6c3d2e882236"; 9 meta = { 10 description = "Guest additions ISO for VirtualBox"; 11 longDescription = ''
··· 5 }: 6 fetchurl { 7 url = "http://download.virtualbox.org/virtualbox/${virtualboxVersion}/VBoxGuestAdditions_${virtualboxVersion}.iso"; 8 + sha256 = "43f7a1045cad0aab40e3af906fea37244ba6873b91b4e227245a14e51b399abd"; 9 meta = { 10 description = "Guest additions ISO for VirtualBox"; 11 longDescription = ''
-3
pkgs/applications/virtualization/virtualbox/guest-additions/builder.nix
··· 78 rm -r src/libs/zlib*/ 79 ''; 80 81 - # Apply fix for: https://www.virtualbox.org/ticket/22397 82 - patches = lib.optional stdenv.hostPlatform.isAarch64 ./guest-additions-aarch64-fix.patch; 83 - 84 postPatch = '' 85 set -x 86 sed -e 's@MKISOFS --version@MKISOFS -version@' \
··· 78 rm -r src/libs/zlib*/ 79 ''; 80 81 postPatch = '' 82 set -x 83 sed -e 's@MKISOFS --version@MKISOFS -version@' \
+2 -2
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix
··· 12 libX11, 13 }: 14 let 15 - virtualboxVersion = "7.1.12"; 16 virtualboxSubVersion = ""; 17 - virtualboxSha256 = "6f9618f39168898134975f51df7c2d6d5129c0aa82b6ae11cf47f920c70df276"; 18 19 platform = 20 if stdenv.hostPlatform.isAarch64 then
··· 12 libX11, 13 }: 14 let 15 + virtualboxVersion = "7.2.0"; 16 virtualboxSubVersion = ""; 17 + virtualboxSha256 = "4f2804ff27848ea772aee6b637bb1e10ee74ec2da117c257413e2d2c4f670ba0"; 18 19 platform = 20 if stdenv.hostPlatform.isAarch64 then
-15
pkgs/applications/virtualization/virtualbox/guest-additions/guest-additions-aarch64-fix.patch
··· 1 - diff --git a/configure b/configure 2 - index e845993..a5b526e 100644q 3 - --- a/configure 4 - +++ b/configure 5 - @@ -422,6 +422,10 @@ check_environment() 6 - BUILD_MACHINE='sparc32' 7 - BUILD_CPU='blend' 8 - ;; 9 - + aarch64) 10 - + BUILD_MACHINE='arm64' 11 - + BUILD_CPU='blend' 12 - + ;; 13 - *) 14 - log_failure "Cannot determine system" 15 - exit 1
···