nixpkgs/pkgs/tools/text/rnr/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

25 lines
695 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rnr";
version = "0.4.2";
src = fetchFromGitHub {
owner = "ismaelgv";
repo = pname;
rev = "v${version}";
sha256 = "sha256-g/PnvOZzlWzEHf3vvYANeJ2ogQ/6duNzhlKpKMBoBFU=";
};
cargoSha256 = "sha256-+oDRNBQ03MknhcTpZFKt0ipJY43LPOKbGF014rrs6dw=";
meta = with lib; {
description = "A command-line tool to batch rename files and directories";
mainProgram = "rnr";
homepage = "https://github.com/ismaelgv/rnr";
changelog = "https://github.com/ismaelgv/rnr/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}