2020-11-21 19:51:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mmv-go";
|
2021-09-22 15:38:15 +00:00
|
|
|
version = "0.1.4";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchyny";
|
|
|
|
repo = "mmv";
|
|
|
|
rev = "v${version}";
|
2021-09-22 15:38:15 +00:00
|
|
|
sha256 = "sha256-n7yW+0cabJGDgppt6Qcj7ID3sD85094NDOPk2o9xDwY=";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
vendorSha256 = "sha256-3Xk8S2Em28r5R7894Ubo2OOlGhrKplV/gY4ftCjPvMo=";
|
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;
|
|
|
|
maintainers = with maintainers; [ zowoq ];
|
|
|
|
};
|
|
|
|
}
|