diff options
author | aszlig <aszlig@nix.build> | 2017-11-21 07:12:37 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2017-11-21 07:44:52 +0100 |
commit | c474d05d7384a4c6f83e53de25fa5fe61f4497e4 (patch) | |
tree | 627313809d591ff683532a7008b38536e287459e /pkgs | |
parent | af83c63ef1926a7571943926fbbd08c6c129d737 (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')
-rw-r--r-- | pkgs/games/build-support/build-unity.nix | 4 | ||||
-rw-r--r-- | pkgs/games/humblebundle/liads.nix | 1 | ||||
-rw-r--r-- | pkgs/games/humblebundle/megabytepunch.nix | 1 | ||||
-rw-r--r-- | pkgs/games/itch/invisigun-heroes.nix | 1 |
4 files changed, 5 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}" ]; }; }; diff --git a/pkgs/games/humblebundle/liads.nix b/pkgs/games/humblebundle/liads.nix index 5b79ed9e..27725200 100644 --- a/pkgs/games/humblebundle/liads.nix +++ b/pkgs/games/humblebundle/liads.nix @@ -3,6 +3,7 @@ buildUnity { name = "liads"; fullName = "LoversInADangerousSpacetime"; + saveDir = "AsteroidBase/LoversInADangerousSpacetime"; version = "20160121"; src = fetchHumbleBundle { diff --git a/pkgs/games/humblebundle/megabytepunch.nix b/pkgs/games/humblebundle/megabytepunch.nix index 9cd0a3de..04f715cf 100644 --- a/pkgs/games/humblebundle/megabytepunch.nix +++ b/pkgs/games/humblebundle/megabytepunch.nix @@ -3,6 +3,7 @@ buildUnity { name = "megabytepunch"; fullName = "MegabytePunch"; + saveDir = "Reptile/Megabyte Punch"; version = "1.12"; src = fetchHumbleBundle { diff --git a/pkgs/games/itch/invisigun-heroes.nix b/pkgs/games/itch/invisigun-heroes.nix index 6bb9b41f..62a9b981 100644 --- a/pkgs/games/itch/invisigun-heroes.nix +++ b/pkgs/games/itch/invisigun-heroes.nix @@ -3,6 +3,7 @@ buildUnity rec { name = "invisigun-heroes"; fullName = "Invisigun Heroes"; + saveDir = "Sombr Studio/Invisigun Heroes"; version = "1.5.70"; src = fetchItch { |