Skip to content

Commit fd38306

Browse files
authored
Merge pull request #5321 from IntersectMBO/nm/cardano-ledger-release-tool
Obtain cardano-ledger-release-tool from flake instead of static binary
2 parents 232511b + 8f0d068 commit fd38306

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed
Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
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 }:
82
let
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";
167
in
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

0 commit comments

Comments
 (0)