diff options
author | aszlig <aszlig@nix.build> | 2018-07-01 01:45:10 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-01 05:44:33 +0200 |
commit | f96adee8203a4001c6d9f4e2522e3ba4b4cba6ff (patch) | |
tree | 1075ec6877079c90f57ee79c91e6bf3009e380cc /pkgs/games/gog | |
parent | 780ab779b112f3cb665732202d4924fb29cd9646 (diff) |
games/gog: Add Satelite Reign
Another Unit3d game, so packaging is pretty straightforward but the save games and settings are in $XDG_DATA_HOME/SatelliteReign instead of the standard Unity3d directory ($XDG_CONFIG_HOME/unity3d). The standard Unity3d directory however is still used, but it only contains the player log file. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/gog')
-rw-r--r-- | pkgs/games/gog/default.nix | 1 | ||||
-rw-r--r-- | pkgs/games/gog/satellite-reign.nix | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/games/gog/default.nix b/pkgs/games/gog/default.nix index 7ed321f1..99cf2d2e 100644 --- a/pkgs/games/gog/default.nix +++ b/pkgs/games/gog/default.nix @@ -15,6 +15,7 @@ let dungeons3 = callPackage ./dungeons3.nix {}; overload = callPackage ./overload.nix {}; party-hard = callPackage ./party-hard.nix {}; + satellite-reign = callPackage ./satellite-reign.nix {}; stardew-valley = callPackage ./stardew-valley.nix {}; stardew-valley-beta = lib.lowPrio (callPackage ./stardew-valley.nix { beta = true; diff --git a/pkgs/games/gog/satellite-reign.nix b/pkgs/games/gog/satellite-reign.nix new file mode 100644 index 00000000..ec8c6db3 --- /dev/null +++ b/pkgs/games/gog/satellite-reign.nix @@ -0,0 +1,18 @@ +{ buildUnity, fetchGog, unzip }: + +buildUnity { + name = "satellite-reign"; + fullName = "SatelliteReignLinux"; + saveDir = "5 Lives Studios/SatelliteReign"; + version = "1.13.06"; + + src = fetchGog { + productId = 1428054996; + downloadName = "en3installer9"; + sha256 = "0wpkpqrcli2772g6l9yab38vbjh1by4cbpa397fqvhny247qdz5k"; + }; + + unpackCmd = "${unzip}/bin/unzip -qq \"$curSrc\" 'data/noarch/game/*' || :"; + + sandbox.paths.required = [ "$XDG_DATA_HOME/SatelliteReign" ]; +} |