From eb561f0798a3fb512cd93598e53f178fa19922d4 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 16 Dec 2014 11:08:13 +0100 Subject: [PATCH] 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 --- pkgs/applications/virtualization/virtualbox/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index d1e0cae7a400..df0cf3e2aaec 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -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