2022-04-18 00:05:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "f2";
|
2023-08-12 07:01:23 +00:00
|
|
|
version = "1.9.1";
|
2022-04-18 00:05:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ayoisaiah";
|
|
|
|
repo = "f2";
|
|
|
|
rev = "v${version}";
|
2023-08-12 07:01:23 +00:00
|
|
|
sha256 = "sha256-vpyI6WtK/0UpPiB8y+HpPd0IsKKkMHa/eIreYo32iAA=";
|
2022-04-18 00:05:51 +00:00
|
|
|
};
|
|
|
|
|
2023-08-12 07:01:23 +00:00
|
|
|
vendorHash = "sha256-Bz3Igjcyq4rkMkgv1J3+JiAqroAjxyAvHw4d4eZJgAM=";
|
2022-04-18 00:05:51 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line batch renaming tool";
|
|
|
|
homepage = "https://github.com/ayoisaiah/f2";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zendo ];
|
|
|
|
};
|
|
|
|
}
|