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-11-23 09:51:10 +00:00
version = "2024.11.20";
2024-07-08 19:36:39 +00:00
2024-09-08 23:38:16 +00:00
src = fetchzip {
2024-11-23 09:51:10 +00:00
url = "https://github.com/NilFoundation/nil_cli/releases/download/2024.11.20/nil-linux-x64.zip";
sha256 = "sha256-7WaUzsxe3u/0pu4cqvLvH7JESBpTixLu5GhBx0dLEsE=";
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
'';
}