summary refs log tree commit diff
path: root/pkgs/tools/misc/f2
diff options
context:
space:
mode:
authorzendo <linzway@qq.com>2022-04-18 08:05:51 +0800
committerzendo <linzway@qq.com>2022-04-18 08:09:05 +0800
commit2034eb4a273e4864c2157b540e45cd3ae57c9244 (patch)
tree1523d1440762c76405f1eaa94e72bb1bf9599e90 /pkgs/tools/misc/f2
parent891d0226de6e281422a8d0d99814925fd7aed8d0 (diff)
downloadnixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.tar
nixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.tar.gz
nixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.tar.bz2
nixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.tar.lz
nixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.tar.xz
nixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.tar.zst
nixpkgs-2034eb4a273e4864c2157b540e45cd3ae57c9244.zip
F2: init at 1.8.0
Diffstat (limited to 'pkgs/tools/misc/f2')
-rw-r--r--pkgs/tools/misc/f2/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/f2/default.nix b/pkgs/tools/misc/f2/default.nix
new file mode 100644
index 00000000000..943ce72cc6c
--- /dev/null
+++ b/pkgs/tools/misc/f2/default.nix
@@ -0,0 +1,27 @@
+{ lib, fetchFromGitHub, buildGoModule }:
+
+buildGoModule rec {
+  pname = "f2";
+  version = "1.8.0";
+
+  src = fetchFromGitHub {
+    owner = "ayoisaiah";
+    repo = "f2";
+    rev = "v${version}";
+    sha256 = "sha256-bNcPzvjVBH7x60kNjlUILiQGG3GDmqIB5T2WP3+nZ+s=";
+  };
+
+  vendorSha256 = "sha256-Cahqk+7jDMUtZq0zhBll1Tfryu2zSPBN7JKscV38360=";
+
+  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 ];
+  };
+}