nixos/nil_cli.nix

18 lines
470 B
Nix

{ lib, fetchzip, stdenv, fetchFromGitHub, fetchurl }:
stdenv.mkDerivation rec {
pname = "nil_cli";
version = "2024.11.20";
src = fetchzip {
url = "https://github.com/NilFoundation/nil_cli/releases/download/2024.11.20/nil-linux-x64.zip";
sha256 = "sha256-7WaUzsxe3u/0pu4cqvLvH7JESBpTixLu5GhBx0dLEsE=";
};
phases = ["installPhase" "patchPhase"];
installPhase = ''
mkdir -p $out/bin
cp $src/nil $out/bin/nil
chmod +x $out/bin/nil
'';
}