From 22011b02180d4092867eb41ad0e332ef882a4400 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Mon, 7 Oct 2019 13:58:39 +0200 Subject: [PATCH] linuxPackages.virtualBoxGuestAdditions: fix build Fixes #70470 --- .../virtualization/virtualbox/guest-additions/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix b/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix index c17765bc54d..3d1cdb05590 100644 --- a/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix +++ b/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix @@ -55,6 +55,8 @@ in stdenv.mkDerivation { ${if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then '' isoinfo -J -i $src -x /VBoxLinuxAdditions.run > ./VBoxLinuxAdditions.run chmod 755 ./VBoxLinuxAdditions.run + # An overflow leads the is-there-enough-space check to fail when there's too much space available, so fake how much space there is + sed -i 's/\$leftspace/16383/' VBoxLinuxAdditions.run ./VBoxLinuxAdditions.run --noexec --keep '' else throw ("Architecture: "+stdenv.hostPlatform.system+" not supported for VirtualBox guest additions")