virtualbox: Fix extension pack without hardening.

We divert to the $out/share/virtualbox directory only if we have
hardening enabled, so let's put the extension pack into
$out/libexec/virtualbox instead if we're compiling without hardening.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-12-16 11:08:13 +01:00
parent e36bec661c
commit eb561f0798
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -129,8 +129,8 @@ in stdenv.mkDerivation {
'';
installPhase = ''
libexec=$out/libexec/virtualbox
share=$out/share/virtualbox
libexec="$out/libexec/virtualbox"
share="${if enableHardening then "$out/share/virtualbox" else "$libexec"}"
# Install VirtualBox files
cd out/linux.*/release/bin