diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-08-08 01:56:47 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-08-08 10:49:00 +0300 |
commit | 1e8894f085f0fb9f323058bc7168a9073ef9f6bb (patch) | |
tree | 298568057bf5e39ff1d62c4d20c1720a39ac2c8d /pkgs/development/tools/unity3d | |
parent | b2413e48aea29b24ae9994c2c8bddf7e96245cc2 (diff) |
unity3d: use chromium-suid-sandbox
Diffstat (limited to 'pkgs/development/tools/unity3d')
-rw-r--r-- | pkgs/development/tools/unity3d/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/tools/unity3d/default.nix b/pkgs/development/tools/unity3d/default.nix index 8f89770ffc850..0a72e6bb91ebb 100644 --- a/pkgs/development/tools/unity3d/default.nix +++ b/pkgs/development/tools/unity3d/default.nix @@ -4,7 +4,7 @@ , cairo, dbus, expat, zlib, libpng12, nodejs, gnutar, gcc, gcc_32bit , libX11, libXcursor, libXdamage, libXfixes, libXrender, libXi , libXcomposite, libXext, libXrandr, libXtst, libSM, libICE, libxcb -, mono, libgnomeui, gnome_vfs, gnome-sharp, gtk-sharp +, mono, libgnomeui, gnome_vfs, gnome-sharp, gtk-sharp, chromium }: let @@ -44,7 +44,7 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper fakeroot file getopt ]; - outputs = [ "out" "monodevelop" "sandbox" ]; + outputs = [ "out" "monodevelop" ]; unpackPhase = '' echo -e 'q\ny' | fakeroot sh $src @@ -91,12 +91,10 @@ in stdenv.mkDerivation rec { ''; installPhase = '' - install -Dm755 Editor/chrome-sandbox $sandbox/bin/unity-chrome-sandbox - unitydir="$out/opt/Unity/Editor" mkdir -p $unitydir mv Editor/* $unitydir - ln -sf /var/setuid-wrappers/unity-chrome-sandbox $unitydir/chrome-sandbox + ln -sf /var/setuid-wrappers/${chromium.sandboxExecutableName} $unitydir/chrome-sandbox mkdir -p $out/share/applications sed "/^Exec=/c\Exec=$out/bin/unity-editor" \ |