Skip to content

Commit

Permalink
virtualbox: be careful with licensing of extension pack
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jun 24, 2013
1 parent 86d14a5 commit 05cfc11
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/applications/virtualization/virtualbox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ let
done
'';

extensionPack = fetchurl {
url = "http://download.virtualbox.org/virtualbox/${version}/Oracle_VM_VirtualBox_Extension_Pack-${version}.vbox-extpack";
extensionPack = requireFile rec {
name = "Oracle_VM_VirtualBox_Extension_Pack-${version}.vbox-extpack";
url = "http://download.virtualbox.org/virtualbox/${version}/${name}";
# Has to be base16 because it's used as an input to VBoxExtPackHelperApp!
sha256 = "5813cae72790de4893cadb839ffbd148290a44ec6913d901d84c9b3740ab1b1e";
message = ''
Please accept PUEL http://www.virtualbox.org/wiki/VirtualBox_PUEL ,
then you can run: nix-prefetch-url ${url}
and re-run the installation.
'';
};

in stdenv.mkDerivation {
Expand Down Expand Up @@ -140,6 +146,7 @@ in stdenv.mkDerivation {
description = "PC emulator";
homepage = http://www.virtualbox.org/;
maintainers = [ lib.maintainers.sander ];
license = with lib.licenses; if enableExtensionPack then unfree else gpl2;
platforms = lib.platforms.linux;
};
}

0 comments on commit 05cfc11

Please sign in to comment.