about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2021-12-31 23:13:40 -0300
committerGitHub <noreply@github.com>2021-12-31 23:13:40 -0300
commit3019a8375dd36a8d943be645347c0d7241806bef (patch)
treedf4a14fa5c3f5e3f4a2deb55504169c86b710515 /pkgs/games
parent8f6e6d3301026aaf8dbc8bf292a3dd7c9d8e69a3 (diff)
parent6e6cd3e0baca6b94ab556169a4a8b638d7158bc8 (diff)
Merge pull request #153013 from hqurve/space-cadet-pinball
space-cadet-pinball: unstable-2021-12-02 -> 2.0.1
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/space-cadet-pinball/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/games/space-cadet-pinball/default.nix b/pkgs/games/space-cadet-pinball/default.nix
index 82a22d9857903..312b2e32823bf 100644
--- a/pkgs/games/space-cadet-pinball/default.nix
+++ b/pkgs/games/space-cadet-pinball/default.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, fetchFromGitHub, fetchzip
 , cmake, SDL2, SDL2_mixer
 , unrar-wrapper, makeWrapper
+, fetchpatch
 }:
 
 let
@@ -14,15 +15,24 @@ let
 in
 stdenv.mkDerivation rec {
   pname = "SpaceCadetPinball";
-  version = "unstable-2021-12-02";
+  version = "2.0.1";
 
   src = fetchFromGitHub {
     owner = "k4zmu2a";
     repo = pname;
-    rev = "de13d4e326b2dfa8e6dfb59815c0a8b9657f942d";
-    sha256 = "sha256-/nk4kNsmL1z2rKgV1dh9gcVjp8xJwovhE6/u2aNl/fA=";
+    rev = "Release_${version}";
+    sha256 = "sha256-LmYplJr1Mg4yNg9eP02FXf9mL1FnzNBhpted3GpmlQ0=";
   };
 
+  patches = [
+    # remove when updating past 2.0.1
+    (fetchpatch {
+      name = "fix-install-directories";
+      url = "https://github.com/k4zmu2a/SpaceCadetPinball/commit/d8ee1b9bfeee21d3981a40e735411393392bc1f6.patch";
+      sha256 = "sha256-BtCDJ+a9AFaOM8nyId0eU9GN/gUQT2kFCO4RIVTzZlE=";
+    })
+  ];
+
   buildInputs = [
     SDL2
     SDL2_mixer