2020-11-20 00:51:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mmv-go";
|
2021-01-10 01:43:12 +01:00
|
|
|
version = "0.1.3";
|
2020-11-20 00:51:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchyny";
|
|
|
|
repo = "mmv";
|
|
|
|
rev = "v${version}";
|
2021-01-10 01:43:12 +01:00
|
|
|
sha256 = "12k5zzyr0lhjadc9kza04v0zgb20v7m4syaqwc7qvn3kfvv1mz8s";
|
2020-11-20 00:51:24 +01:00
|
|
|
};
|
|
|
|
|
2021-01-10 01:43:12 +01:00
|
|
|
vendorSha256 = "0xnrai15ww9lfk02bc9p5ssycwnqkyjj5ch1srh7yvnbw3fakx68";
|
2020-11-20 00:51:24 +01:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.revision=${src.rev}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/itchyny/mmv";
|
|
|
|
description = "Rename multiple files using your $EDITOR";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zowoq ];
|
|
|
|
};
|
|
|
|
}
|