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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
632 B
Nix
Raw Normal View History

2020-11-19 23:51:24 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "mmv-go";
2023-04-29 10:58:03 +00:00
version = "0.1.6";
2020-11-19 23:51:24 +00:00
src = fetchFromGitHub {
owner = "itchyny";
repo = "mmv";
rev = "v${version}";
2023-04-29 10:58:03 +00:00
sha256 = "sha256-DNLiW0QX7WrBslwVCbvydLnE6JAcfcRALYqwsK/J5x0=";
2020-11-19 23:51:24 +00:00
};
2023-04-29 10:58:03 +00:00
vendorHash = "sha256-HHGiMSBu3nrIChSYaEu9i22nwhLKgVQkPvbTMHBWwAE=";
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;
2022-08-22 21:51:30 +00:00
maintainers = with maintainers; [ ];
2021-10-08 19:51:13 +00:00
mainProgram = "mmv";
2020-11-19 23:51:24 +00:00
};
}