nixos/nil_cli.nix

18 lines
470 B
Nix

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