From d2db8c7399fb9fedd12b49757271290597551efd Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 24 Jun 2026 20:34:45 +0200 Subject: [PATCH] ketch: init at 0.9.3 --- pkgs/by-name/ke/ketch/package.nix | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/ke/ketch/package.nix diff --git a/pkgs/by-name/ke/ketch/package.nix b/pkgs/by-name/ke/ketch/package.nix new file mode 100644 index 000000000000..ae54c19e9545 --- /dev/null +++ b/pkgs/by-name/ke/ketch/package.nix @@ -0,0 +1,46 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: +buildGoModule (finalAttrs: { + pname = "ketch"; + version = "0.9.3"; + + __structuredAttrs = true; + strictDeps = true; + + src = fetchFromGitHub { + owner = "1broseidon"; + repo = "ketch"; + tag = "v${finalAttrs.version}"; + hash = "sha256-bcmSPslW/k5OO+Zce6N0S3NoQeXGOM6DcZ4Cj2W2C14="; + }; + + vendorHash = "sha256-m3IwAYsczsxcVk9fay+f2AsNjmXoPk7NS0abES6b594="; + + ldflags = [ + "-s" + "-w" + "-X github.com/1broseidon/ketch/cmd.version=${finalAttrs.version}" + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "version"; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fast, stateless CLI for web search and scrape. Built for AI agents."; + homepage = "https://chain.sh/ketch/"; + changelog = "https://github.com/1broseidon/ketch/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + stephsi + ]; + mainProgram = "ketch"; + }; +})