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.
This commit is contained in:
Ming-Chuan
2024-11-23 19:13:27 -08:00
parent 58feae3a90
commit 6d0fee0f6c
+5 -2
View File
@@ -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