about summary refs log tree commit diff
path: root/pkgs/games/space-cadet-pinball
diff options
context:
space:
mode:
authorhqurve <hqurve@outlook.com>2021-12-31 19:59:33 -0400
committerhqurve <hqurve@outlook.com>2021-12-31 20:47:37 -0400
commit6e6cd3e0baca6b94ab556169a4a8b638d7158bc8 (patch)
tree5f5831a551467aaedcb6a9fd36c7b9293dfb32a5 /pkgs/games/space-cadet-pinball
parent796af3ddba8c3b045b79332a39eae92f24efc277 (diff)
space-cadet-pinball: unstable-2021-12-02 -> 2.0.1
Diffstat (limited to 'pkgs/games/space-cadet-pinball')
-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