2020-11-21 19:51:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mmv-go";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.1.6";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchyny";
|
|
|
|
repo = "mmv";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-DNLiW0QX7WrBslwVCbvydLnE6JAcfcRALYqwsK/J5x0=";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-HHGiMSBu3nrIChSYaEu9i22nwhLKgVQkPvbTMHBWwAE=";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2021-08-06 21:57:35 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.revision=${src.rev}" ];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/itchyny/mmv";
|
|
|
|
description = "Rename multiple files using your $EDITOR";
|
|
|
|
license = licenses.mit;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-10-09 14:59:57 +00:00
|
|
|
mainProgram = "mmv";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
}
|