From c474d05d7384a4c6f83e53de25fa5fe61f4497e4 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 21 Nov 2017 07:12:37 +0100 Subject: 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 --- pkgs/games/build-support/build-unity.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/games/build-support') 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}" ]; }; }; -- cgit 1.4.1