about summary refs log tree commit diff
path: root/pkgs/games/build-support
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2017-11-21 07:12:37 +0100
committeraszlig <aszlig@nix.build>2017-11-21 07:44:52 +0100
commitc474d05d7384a4c6f83e53de25fa5fe61f4497e4 (patch)
tree627313809d591ff683532a7008b38536e287459e /pkgs/games/build-support
parentaf83c63ef1926a7571943926fbbd08c6c129d737 (diff)
pkgs/build-unity: Add a saveDir attribute
This is used for sandboxing and instead of letting all Unity games
access the data of every other Unity game we now restrict it to its own
save directory only.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/build-support')
-rw-r--r--pkgs/games/build-support/build-unity.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/build-support/build-unity.nix b/pkgs/games/build-support/build-unity.nix
index 6d7a6cb1..a38e8e76 100644
--- a/pkgs/games/build-support/build-unity.nix
+++ b/pkgs/games/build-support/build-unity.nix
@@ -2,7 +2,7 @@
 , mesa, xorg, libpulseaudio, libudev, zlib
 }:
 
-{ name, version, fullName
+{ name, version, fullName, saveDir
 , nativeBuildInputs ? []
 , buildInputs ? []
 , runtimeDependencies ? []
@@ -31,7 +31,7 @@ in buildGame ({
   sandbox = sandbox // {
     paths = (sandbox.paths or {}) // {
       required = (sandbox.paths.required or []) ++ [
-        "$XDG_CONFIG_HOME/unity3d"
+        "$XDG_CONFIG_HOME/unity3d/${saveDir}"
       ];
     };
   };