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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2021-10-08 19:51:13 +00:00
|
|
|
mainProgram = "mmv";
|
2020-11-19 23:51:24 +00:00
|
|
|
};
|
|
|
|
}
|