From 6d0fee0f6c02fe96c5068e567915906107daff4f Mon Sep 17 00:00:00 2001 From: Ming-Chuan Date: Sat, 23 Nov 2024 19:13:26 -0800 Subject: [PATCH] streamcontroller: Use commit hash to fetch releases Upstream force pushed the 1.5.0-beta.7 tag and created yet another GitHub release for this version number. Moving forward we should use commit hash to fetch source to avoid build broken by this. --- pkgs/by-name/st/streamcontroller/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/streamcontroller/package.nix b/pkgs/by-name/st/streamcontroller/package.nix index 619e270e7d49..e1f95c5ebf61 100644 --- a/pkgs/by-name/st/streamcontroller/package.nix +++ b/pkgs/by-name/st/streamcontroller/package.nix @@ -17,12 +17,15 @@ stdenv.mkDerivation rec { pname = "streamcontroller"; version = "1.5.0-beta.7"; + # We have to hardcode revision because upstream often create multiple releases for the same version number. + # This is the commit hash that maps to 1.5.0-beta.7 released on 2024-11-20 + rev = "45b5bc72f617c5aea306450d6592da66ade53568"; src = fetchFromGitHub { repo = "StreamController"; owner = "StreamController"; - rev = version; - hash = "sha256-w2ElVus0dgA375lv58q3H8ZmQ+8iBxC4vxtJSlKssoM="; + inherit rev; + hash = "sha256-tgbqURtqp1KbzOfXo4b4Dp3N8Sg8xcUSTwdEFXq+f6w="; }; # The installation method documented upstream