From 3328bbbf5d2b8df53bbe358e8cb19c639d32e32c Mon Sep 17 00:00:00 2001 From: genga Date: Fri, 20 Dec 2024 14:40:08 +0300 Subject: [PATCH] ahoy: init at 2.2.0 ahoy: update meta ahoy: add passthru script --- pkgs/by-name/ah/ahoy/package.nix | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ah/ahoy/package.nix diff --git a/pkgs/by-name/ah/ahoy/package.nix b/pkgs/by-name/ah/ahoy/package.nix new file mode 100644 index 0000000000000..a1bd106289463 --- /dev/null +++ b/pkgs/by-name/ah/ahoy/package.nix @@ -0,0 +1,34 @@ +{ + lib, + fetchFromGitHub, + buildGoModule, + nix-update-script, +}: + +buildGoModule rec { + pname = "ahoy"; + version = "2.2.0"; + + src = fetchFromGitHub { + owner = "ahoy-cli"; + repo = "ahoy"; + tag = "v${version}"; + hash = "sha256-xwjfY9HudxVz3xEEyRPtWysbojtan56ABBL3KgG0J/8="; + }; + + # vendor folder exists + vendorHash = null; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Create self-documenting cli programs from YAML files"; + homepage = "https://github.com/ahoy-cli/ahoy"; + changelog = "https://github.com/ahoy-cli/ahoy/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ genga898 ]; + mainProgram = "ahoy"; + }; +}