diff options
author | figsoda <figsoda@pm.me> | 2023-04-25 18:57:13 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-04-26 10:58:09 -0400 |
commit | a6e90dec5f7dd9b6a4a24bd2218d3487163a7cd7 (patch) | |
tree | 8f99794d79f99a5e862fa5a66e1cd0d9c9695cfa /pkgs/tools/nix/nix-melt | |
parent | d4bde02d3204f05d07ddade9fcb5efe3c86866f2 (diff) |
nix-melt: init at 0.1.2
Diffstat (limited to 'pkgs/tools/nix/nix-melt')
-rw-r--r-- | pkgs/tools/nix/nix-melt/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/nix/nix-melt/default.nix b/pkgs/tools/nix/nix-melt/default.nix new file mode 100644 index 0000000000000..3a0b15c8c97f8 --- /dev/null +++ b/pkgs/tools/nix/nix-melt/default.nix @@ -0,0 +1,40 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, installShellFiles +}: + +rustPlatform.buildRustPackage rec { + pname = "nix-melt"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "nix-community"; + repo = "nix-melt"; + rev = "v${version}"; + hash = "sha256-5V9sPbBb9t4B6yiLrYF+hx6YokGDH6+UsVQBhgqxMbY="; + }; + + cargoHash = "sha256-yBoaLqynvYC9ebC0zjd2FmSSd53xzn4ralihtCFubAw="; + + nativeBuildInputs = [ + installShellFiles + ]; + + env = { + GEN_ARTIFACTS = "artifacts"; + }; + + postInstall = '' + installManPage artifacts/nix-melt.1 + installShellCompletion artifacts/nix-melt.{bash,fish} --zsh artifacts/_nix-melt + ''; + + meta = with lib; { + description = "A ranger-like flake.lock viewer"; + homepage = "https://github.com/nix-community/nix-melt"; + changelog = "https://github.com/nix-community/nix-melt/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mpl20; + maintainers = with maintainers; [ figsoda ]; + }; +} |