Commit 6d0fee0f authored by Ming-Chuan's avatar Ming-Chuan
Browse files

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.
parent 58feae3a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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