nixpkgs/pkgs/by-name/zf/zfind/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
949 B
Nix
Raw Normal View History

2024-06-14 17:10:33 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
}:
2024-06-06 09:47:04 +00:00
buildGoModule rec {
pname = "zfind";
2024-11-08 01:20:02 +00:00
version = "0.4.6";
2024-06-06 09:47:04 +00:00
src = fetchFromGitHub {
owner = "laktak";
repo = "zfind";
rev = "v${version}";
2024-11-08 01:20:02 +00:00
hash = "sha256-bbeS2x9HzrsOE5h1y07LoEBm9dinMCHX9GJftj5Md9s=";
2024-06-06 09:47:04 +00:00
};
2024-06-22 19:36:35 +00:00
vendorHash = "sha256-blq0/pRppdf2jcuhIqYeNhcazFNZOGeEjPTSLgHqhrU=";
2024-06-06 09:47:04 +00:00
2024-06-14 17:10:33 +00:00
ldflags = [
"-X"
"main.appVersion=${version}"
];
2024-06-06 09:47:04 +00:00
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 ];
};
}