From e1538e43b92c19465df62f3178c9262690b76c3b Mon Sep 17 00:00:00 2001 From: Magicloud <1886157+Magicloud@users.noreply.github.com> Date: Tue, 8 Sep 2020 08:54:06 +0800 Subject: [PATCH 1/2] virtualbox: 6.1.10 -> 6.1.14 6.1.14 is the latest release of Virtualbox. Also disabled VirtIO since the source tarball does not include necessary source code. --- .../virtualization/virtualbox/default.nix | 6 +++-- .../virtualization/virtualbox/extpack.nix | 2 +- .../virtualbox/extra_symbols.patch | 22 +++++++++++-------- .../virtualbox/guest-additions/default.nix | 2 +- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index 7fb4f8b59d18..72cbb8b81f8c 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -23,7 +23,7 @@ let buildType = "release"; # Use maintainers/scripts/update.nix to update the version and all related hashes or # change the hashes in extpack.nix and guest-additions/default.nix as well manually. - version = "6.1.10"; + version = "6.1.14"; iasl' = iasl.overrideAttrs (old: rec { inherit (old) pname; @@ -40,7 +40,7 @@ in stdenv.mkDerivation { src = fetchurl { url = "https://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"; - sha256 = "37d8b30c0be82a50c858f3fc70cde967882239b6212bb32e138d3615b423c477"; + sha256 = "91fa05bcfce36316ca93e3927c9550ea66286fff4c5bec900b753fca278ce1a0"; }; outputs = [ "out" "modsrc" ]; @@ -120,6 +120,8 @@ in stdenv.mkDerivation { NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed 's,\-isystem ${lib.getDev stdenv.cc.libc}/include,,g') cat >> LocalConfig.kmk < Date: Fri, 25 Sep 2020 12:37:39 +0200 Subject: [PATCH 2/2] virtualbox: re-add support for virtio For some reason the original source tarball for version 6.1.14 didn't bundle the sources for `virtio`-support causing a build-failure. After this was reported, a new tarball named `VirtualBox-6.1.14a.tar.bz2` was published which fixes the issue[1]. [1] https://www.virtualbox.org/ticket/19862 --- pkgs/applications/virtualization/virtualbox/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index 72cbb8b81f8c..c320eca0bbee 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -24,6 +24,7 @@ let # Use maintainers/scripts/update.nix to update the version and all related hashes or # change the hashes in extpack.nix and guest-additions/default.nix as well manually. version = "6.1.14"; + tarballVersion = "${version}a"; iasl' = iasl.overrideAttrs (old: rec { inherit (old) pname; @@ -39,8 +40,8 @@ in stdenv.mkDerivation { inherit version; src = fetchurl { - url = "https://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"; - sha256 = "91fa05bcfce36316ca93e3927c9550ea66286fff4c5bec900b753fca278ce1a0"; + url = "https://download.virtualbox.org/virtualbox/${version}/VirtualBox-${tarballVersion}.tar.bz2"; + sha256 = "16f3cb83ab3c4dacf2a9d3cc638cbd18db23767828bba6b8ba1c1b57abeb6aef"; }; outputs = [ "out" "modsrc" ]; @@ -120,8 +121,6 @@ in stdenv.mkDerivation { NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed 's,\-isystem ${lib.getDev stdenv.cc.libc}/include,,g') cat >> LocalConfig.kmk <