1{ lib, fetchFromGitHub, buildGoModule }:
2
3buildGoModule rec {
4 pname = "f2";
5 version = "1.9.1";
6
7 src = fetchFromGitHub {
8 owner = "ayoisaiah";
9 repo = "f2";
10 rev = "v${version}";
11 sha256 = "sha256-vpyI6WtK/0UpPiB8y+HpPd0IsKKkMHa/eIreYo32iAA=";
12 };
13
14 vendorHash = "sha256-Bz3Igjcyq4rkMkgv1J3+JiAqroAjxyAvHw4d4eZJgAM=";
15
16 ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
17
18 # has no tests
19 doCheck = false;
20
21 meta = with lib; {
22 description = "Command-line batch renaming tool";
23 homepage = "https://github.com/ayoisaiah/f2";
24 license = licenses.mit;
25 maintainers = with maintainers; [ zendo ];
26 };
27}