diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-08-16 20:27:05 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-08-20 08:25:27 +0200 |
commit | f696376fa75526ccfe39b13d88f2663c3a531be0 (patch) | |
tree | 92bb1931173a67819d32422f0574444498af5068 /pkgs/applications/virtualization/virtualbox | |
parent | 2987c1b26423c93c067a0d1152e674a0f5580109 (diff) |
virtualbox: include Guest Additions ISO
Although virtualbox has code to download it at runtime, I'd like to have it included at build time because: * I like programs that are fully functional even when offline. * Runtime downloading doesn't work, it results in error message "During certificate downloading: Unknown reason". This change increases the closure size 5 % (969 -> 1020 MiB).
Diffstat (limited to 'pkgs/applications/virtualization/virtualbox')
-rw-r--r-- | pkgs/applications/virtualization/virtualbox/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index b814386067227..b425ccedb28f3 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -4,6 +4,7 @@ , qttools, qtsvg, qtwayland, pkg-config, which, docbook_xsl, docbook_xml_dtd_43 , alsa-lib, curl, libvpx, nettools, dbus, substituteAll, gsoap, zlib , yasm, glslang +, linuxPackages # If open-watcom-bin is not passed, VirtualBox will fall back to use # the shipped alternative sources (assembly). , open-watcom-bin @@ -215,6 +216,7 @@ in stdenv.mkDerivation { mkdir -p "$out/share/virtualbox" cp -rv src/VBox/Main/UnattendedTemplates "$out/share/virtualbox" + ln -s "${linuxPackages.virtualboxGuestAdditions.src}" "$out/share/virtualbox/VBoxGuestAdditions.iso" ''; preFixup = optionalString (!headless) '' |