From 9fe6e87237a4d931d26521fb27fd417558c94a0f Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Fri, 24 Apr 2026 23:25:31 +0300 Subject: [PATCH] rsonpath: add nix-update-script --- pkgs/by-name/rs/rsonpath/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/rs/rsonpath/package.nix b/pkgs/by-name/rs/rsonpath/package.nix index d31cdce6190b..29caa39b2f52 100644 --- a/pkgs/by-name/rs/rsonpath/package.nix +++ b/pkgs/by-name/rs/rsonpath/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -20,10 +22,15 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoBuildFlags = [ "-p=rsonpath" ]; cargoTestFlags = finalAttrs.cargoBuildFlags; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Experimental JSONPath engine for querying massive streamed datasets"; homepage = "https://github.com/v0ldek/rsonpath"; - changelog = "https://github.com/v0ldek/rsonpath/blob/${finalAttrs.version}/CHANGELOG.md"; + changelog = "https://github.com/v0ldek/rsonpath/blob/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ tbutter