@@ -16,11 +16,7 @@ with stdenv.lib;
17 buildType = "release";
17 buildType = "release";
19− # When changing this, update ./guest-additions and the extpack
19+ inherit (importJSON ./upstream-info.json) version extpackRev extpack main;
20− # revision/hash as well. See
21− # http://download.virtualbox.org/virtualbox/${version}/SHA256SUMS
25 forEachModule = action: ''
21 forEachModule = action: ''
26 for mod in \
22 for mod in \
@@ -41,12 +37,9 @@ let
43 # See https://github.com/NixOS/nixpkgs/issues/672 for details
39 # See https://github.com/NixOS/nixpkgs/issues/672 for details
44− extpackRevision = "110228";
45 extensionPack = requireFile rec {
40 extensionPack = requireFile rec {
46− name = "Oracle_VM_VirtualBox_Extension_Pack-${version}-${extpackRevision}.vbox-extpack";
41+ name = "Oracle_VM_VirtualBox_Extension_Pack-${version}-${extpackRev}.vbox-extpack";
47− # IMPORTANT: Hash must be base16 encoded because it's used as an input to
42+ sha256 = extpack;
48− # VBoxExtPackHelperApp!
49− sha256 = "9462ff1b567c37ad9a33c0c7ca1925776615ec89b5a72563f29a8cc8514cf316";
50 message = ''
43 message = ''
51 In order to use the extension pack, you need to comply with the VirtualBox Personal Use
44 In order to use the extension pack, you need to comply with the VirtualBox Personal Use
52 and Evaluation License (PUEL) available at:
45 and Evaluation License (PUEL) available at:
@@ -70,7 +63,7 @@ in stdenv.mkDerivation {
71 src = fetchurl {
64 src = fetchurl {
72 url = "http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2";
65 url = "http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2";
73− sha256 = "b9a14a7771059c55c44b97f8d4eef9bea84544f3e215e0caa563bc35e2f16aaf";
66+ sha256 = main;
76 buildInputs =
69 buildInputs =