···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";
7879- kvmPatchVersion = "20250207";
80- kvmPatchHash = "sha256-GzRLIXhzWL1NLvaGKcWVBCdvay1IxgJUE4koLX1ze7Y=";
08182 # 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 ];
271272 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";
7879+ kvmPatchVboxVersion = "7.2.0";
80+ kvmPatchVersion = "20250903";
81+ kvmPatchHash = "sha256-JTE9Kr+nJ6HLeDrzL2EVyDQhxzn3UsoQVIQ6zNCwioY=";
8283 # 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+ })
0000000259 ++ [
260 ./qt-dependency-paths.patch
261 # https://github.com/NixOS/nixpkgs/issues/123851
262 ./fix-audio-driver-loading.patch
0263 ];
264265 postPatch = ''
···4 virtualbox,
5}:
6let
7- virtualboxExtPackVersion = "7.1.12";
8in
9fetchurl 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}:
6let
7+ virtualboxExtPackVersion = "7.2.0";
8in
9fetchurl 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;