about summary refs log tree commit diff
path: root/pkgs/by-name/zf
diff options
context:
space:
mode:
authorDean Eckert <dean.eckert@red-oak-consulting.com>2024-06-06 11:47:04 +0200
committerDean Eckert <dean.eckert@red-oak-consulting.com>2024-06-14 17:12:22 +0200
commit57597e7e5b5bf535c2b43e450df5b749de4b474e (patch)
tree1c1517a24410c13161229a751f2405cff60e9865 /pkgs/by-name/zf
parent1523ad99b8791bcd0d7b67382369a120efa83627 (diff)
zfind: init at 0.4.0
Diffstat (limited to 'pkgs/by-name/zf')
-rw-r--r--pkgs/by-name/zf/zfind/package.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/zf/zfind/package.nix b/pkgs/by-name/zf/zfind/package.nix
new file mode 100644
index 0000000000000..ad0e33e2e833f
--- /dev/null
+++ b/pkgs/by-name/zf/zfind/package.nix
@@ -0,0 +1,30 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "zfind";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "laktak";
+    repo = "zfind";
+    rev = "v${version}";
+    hash = "sha256-T0cTEjjF9GTe+knixsgnbNfACUvbx92PUbLE+wgZ7sk=";
+  };
+
+  vendorHash = "sha256-mmoJrqWRmJTAR2wkAB52mpYEEj3XD+jHvlVrw51vqys=";
+
+  ldflags = [ "-X" "main.appVersion=${version}" ];
+
+  meta = with lib; {
+    description = "CLI for file search with SQL like syntax.";
+    longDescription = ''
+      zfind allows you to search for files, including inside tar, zip, 7z and rar archives.
+      It makes finding files easy with a filter syntax that is similar to an SQL-WHERE clause.
+    '';
+    homepage = "https://github.com/laktak/zfind";
+    changelog = "https://github.com/laktak/zfind/releases/tag/v${version}";
+    license = licenses.mit;
+    mainProgram = "zfind";
+    maintainers = with maintainers; [ eeedean ];
+  };
+}