···55 ${if stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux" then ''
56 isoinfo -J -i $src -x /VBoxLinuxAdditions.run > ./VBoxLinuxAdditions.run
57 chmod 755 ./VBoxLinuxAdditions.run
58+ # 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
59+ sed -i 's/\$leftspace/16383/' VBoxLinuxAdditions.run
60 ./VBoxLinuxAdditions.run --noexec --keep
61 ''
62 else throw ("Architecture: "+stdenv.hostPlatform.system+" not supported for VirtualBox guest additions")