From fb3b077a8289242deb289da53b5d7ec6e2277a8e Mon Sep 17 00:00:00 2001 From: rwxd Date: Wed, 4 Feb 2026 12:32:55 +0100 Subject: [PATCH] pdnsgrep: init at 1.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pdnsgrep: add passthru.updateScript pdnsgrep: apply suggestions from code review Co-authored-by: GaƩtan Lepage --- pkgs/by-name/pd/pdnsgrep/package.nix | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/pd/pdnsgrep/package.nix diff --git a/pkgs/by-name/pd/pdnsgrep/package.nix b/pkgs/by-name/pd/pdnsgrep/package.nix new file mode 100644 index 000000000000..2def94da7c0b --- /dev/null +++ b/pkgs/by-name/pd/pdnsgrep/package.nix @@ -0,0 +1,38 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "pdnsgrep"; + version = "1.1.2"; + + src = fetchFromGitHub { + owner = "akquinet"; + repo = "pdnsgrep"; + tag = "v${finalAttrs.version}"; + hash = "sha256-NFJkLYOHBUYRVehT0VBIFPagLiR8cVvVkAnqCwVUqYg="; + }; + + vendorHash = "sha256-kbX3oTg2OGr4Gj9MEXa2Z7AlYIyv6LNIY4mR06F6OvQ="; + proxyVendor = true; + + ldflags = [ + "-s" + ]; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Search tool for PowerDNS logs"; + homepage = "https://github.com/akquinet/pdnsgrep"; + changelog = "https://github.com/akquinet/pdnsgrep/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ rwxd ]; + mainProgram = "pdnsgrep"; + }; +})