File tree Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change 1- {
2- stdenv ,
3- lib ,
4- fetchzip ,
5- } :
6- # Although `cardano-ledger-release-tool` is a flake, we choose to download
7- # the released binary artifact for compatibility with the non-nix CI
1+ { system } :
82let
9- pname = "cardano-ledger-release-tool" ;
10- version = "0.1.0.0" ;
11- hash = "sha256-Xge1/T5mtsOF5XiIDPoWU2f2HMJ0pCEbS+brfQyCZpw=" ;
12-
13- repo = "input-output-hk/${ pname } " ;
14- release = "${ pname } -${ version } " ;
15- url = "https://github.com/${ repo } /releases/download/${ release } /${ pname } -Linux-x86_64.zip" ;
3+ type = "github" ;
4+ owner = "input-output-hk" ;
5+ repo = "cardano-ledger-release-tool" ;
6+ rev = "f52262644af02e6eae54cf5d6021ecebf7f5c1d1" ;
167in
17- stdenv . mkDerivation {
18- inherit pname version ;
19- src = fetchzip { inherit url hash ; } ;
20- installPhase = ''
21- mkdir -p $out/bin
22- cp -a ${ pname } $out/bin/
23- '' ;
24- }
8+ ( builtins . getFlake "${ type } :${ owner } /${ repo } /${ rev } " ) . packages . ${ system } . default
You can’t perform that action at this time.
0 commit comments