18 lines
464 B
Nix
18 lines
464 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nil_cli";
|
|
version = "2024.07.02";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/NilFoundation/nil_cli/releases/download/2024.07.04/nil_cli-linux-x64";
|
|
sha256 = "sha256-j0CL2cgeeKejGapYMZwRdIKqmj5BVLy8D2SuPl0H5kM=";
|
|
};
|
|
|
|
phases = ["installPhase" "patchPhase"];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src $out/bin/nil_cli
|
|
chmod +x $out/bin/nil_cli
|
|
'';
|
|
}
|