about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/games/gog/default.nix1
-rw-r--r--pkgs/games/gog/satellite-reign.nix18
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" ];
+}