about summary refs log tree commit diff
path: root/pkgs/games/shattered-pixel-dungeon/summoning-pixel-dungeon/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/shattered-pixel-dungeon/summoning-pixel-dungeon/default.nix')
-rw-r--r--pkgs/games/shattered-pixel-dungeon/summoning-pixel-dungeon/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/games/shattered-pixel-dungeon/summoning-pixel-dungeon/default.nix b/pkgs/games/shattered-pixel-dungeon/summoning-pixel-dungeon/default.nix
new file mode 100644
index 0000000000000..291b4b386cc52
--- /dev/null
+++ b/pkgs/games/shattered-pixel-dungeon/summoning-pixel-dungeon/default.nix
@@ -0,0 +1,34 @@
+{ callPackage
+, fetchFromGitHub
+, gradle_6
+, substitute
+}:
+
+callPackage ../generic.nix rec {
+  pname = "summoning-pixel-dungeon";
+  version = "1.2.5a";
+
+  src = fetchFromGitHub {
+    owner = "TrashboxBobylev";
+    repo = "Summoning-Pixel-Dungeon";
+    # The GH release is named "$version-$hash", but it's actually a mutable "_latest" tag
+    rev = "89ff59e7f42abcc88b7a1f24391f95ddc30f9d29";
+    hash = "sha256-VQcWkbGe/0qyt3M5WWgTxczwC5mE3lRHbYidOwRoukI=";
+  };
+
+  patches = [(substitute {
+    src = ./disable-git-version.patch;
+    substitutions = [ "--subst-var-by" "version" version ];
+  })];
+
+  desktopName = "Summoning Pixel Dungeon";
+
+  meta = {
+    homepage = "https://github.com/TrashboxBobylev/Summoning-Pixel-Dungeon";
+    downloadPage = "https://github.com/TrashboxBobylev/Summoning-Pixel-Dungeon/releases";
+    description = "A fork of the Shattered Pixel Dungeon roguelike with added summoning mechanics";
+  };
+
+  # Probably due to https://github.com/gradle/gradle/issues/17236
+  gradle = gradle_6;
+}