@@ -16,11 +16,7 @@ with stdenv.lib;
1616let
1717 buildType = "release";
1818
19− # When changing this, update ./guest-additions and the extpack
20− # revision/hash as well. See
21− # http://download.virtualbox.org/virtualbox/${version}/SHA256SUMS
22− # for hashes.
23− version = "5.1.4";
19+ inherit (importJSON ./upstream-info.json) version extpackRev extpack main;
2420
2521 forEachModule = action: ''
2622 for mod in \
@@ -41,12 +37,9 @@ let
4137 '';
4238
4339 # See https://github.com/NixOS/nixpkgs/issues/672 for details
44− extpackRevision = "110228";
4540 extensionPack = requireFile rec {
46− name = "Oracle_VM_VirtualBox_Extension_Pack-${version}-${extpackRevision}.vbox-extpack";
47− # IMPORTANT: Hash must be base16 encoded because it's used as an input to
48− # VBoxExtPackHelperApp!
49− sha256 = "9462ff1b567c37ad9a33c0c7ca1925776615ec89b5a72563f29a8cc8514cf316";
41+ name = "Oracle_VM_VirtualBox_Extension_Pack-${version}-${extpackRev}.vbox-extpack";
42+ sha256 = extpack;
5043 message = ''
5144 In order to use the extension pack, you need to comply with the VirtualBox Personal Use
5245 and Evaluation License (PUEL) available at:
@@ -70,7 +63,7 @@ in stdenv.mkDerivation {
7063
7164 src = fetchurl {
7265 url = "http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2";
73− sha256 = "b9a14a7771059c55c44b97f8d4eef9bea84544f3e215e0caa563bc35e2f16aaf";
66+ sha256 = main;
7467 };
7568
7669 buildInputs =