nixos/nil_cli.nix

19 lines
470 B
Nix
Raw Normal View History

2024-09-08 23:38:16 +00:00
{ lib, fetchzip, stdenv, fetchFromGitHub, fetchurl }:
2024-07-08 19:36:39 +00:00
stdenv.mkDerivation rec {
pname = "nil_cli";
2024-09-08 23:38:16 +00:00
version = "2024.08.12";
2024-07-08 19:36:39 +00:00
2024-09-08 23:38:16 +00:00
src = fetchzip {
url = "https://github.com/NilFoundation/nil_cli/releases/download/2024.10.15/nil-linux-x64.zip";
sha256 = "sha256-KAPvRDo++q2g6vWPOrJcksVyBjEoNznjQlKGweD6rVg=";
2024-07-08 19:36:39 +00:00
};
phases = ["installPhase" "patchPhase"];
installPhase = ''
mkdir -p $out/bin
2024-09-08 23:38:16 +00:00
cp $src/nil $out/bin/nil
chmod +x $out/bin/nil
2024-07-08 19:36:39 +00:00
'';
}