nixpkgs/pkgs/tools/nix/nix-melt/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

42 lines
977 B
Nix

{ 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 = "Ranger-like flake.lock viewer";
mainProgram = "nix-melt";
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 ];
};
}