From 6e6cd3e0baca6b94ab556169a4a8b638d7158bc8 Mon Sep 17 00:00:00 2001 From: hqurve Date: Fri, 31 Dec 2021 19:59:33 -0400 Subject: [PATCH] space-cadet-pinball: unstable-2021-12-02 -> 2.0.1 --- pkgs/games/space-cadet-pinball/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/games/space-cadet-pinball/default.nix b/pkgs/games/space-cadet-pinball/default.nix index 82a22d985790..312b2e32823b 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