From 071b465175b2eecd27a3675dcb8ccc8c8b0d9232 Mon Sep 17 00:00:00 2001 From: rorosen Date: Wed, 20 May 2026 10:12:52 +0200 Subject: [PATCH] zeekstd: add version check hook --- pkgs/by-name/ze/zeekstd/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/ze/zeekstd/package.nix b/pkgs/by-name/ze/zeekstd/package.nix index 7101af998ae3..0fd40b3c58e3 100644 --- a/pkgs/by-name/ze/zeekstd/package.nix +++ b/pkgs/by-name/ze/zeekstd/package.nix @@ -5,6 +5,7 @@ nix-update, rustPlatform, writeShellScript, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "zeekstd"; @@ -18,6 +19,8 @@ rustPlatform.buildRustPackage (finalAttrs: { }; cargoHash = "sha256-PpfNNRh+K61jfWtBYtWSx3cWXZ2v7tS52Ny1T1XSYVw="; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; passthru.updateScript = writeShellScript "update-zeekstd" '' latestVersion=$(curl ''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} --fail --silent https://api.github.com/repos/rorosen/zeekstd/releases/latest | ${lib.getExe jq} --raw-output .tag_name | sed -E 's/^v([0-9.]+)-cli$/\1/')