nixpkgs/pkgs/tools/misc/mmv-go/default.nix

26 lines
640 B
Nix
Raw Normal View History

2020-11-19 23:51:24 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "mmv-go";
version = "0.1.4";
2020-11-19 23:51:24 +00:00
src = fetchFromGitHub {
owner = "itchyny";
repo = "mmv";
rev = "v${version}";
sha256 = "sha256-n7yW+0cabJGDgppt6Qcj7ID3sD85094NDOPk2o9xDwY=";
2020-11-19 23:51:24 +00:00
};
vendorSha256 = "sha256-3Xk8S2Em28r5R7894Ubo2OOlGhrKplV/gY4ftCjPvMo=";
2020-11-19 23:51:24 +00:00
2021-07-31 13:44:18 +00:00
ldflags = [ "-s" "-w" "-X main.revision=${src.rev}" ];
2020-11-19 23:51:24 +00:00
meta = with lib; {
homepage = "https://github.com/itchyny/mmv";
description = "Rename multiple files using your $EDITOR";
license = licenses.mit;
maintainers = with maintainers; [ zowoq ];
2021-10-08 19:51:13 +00:00
mainProgram = "mmv";
2020-11-19 23:51:24 +00:00
};
}