jnv: add versionCheckHook

This commit is contained in:
Defelo
2025-04-01 21:50:44 +02:00
parent afcb71c481
commit 2843b39e60

View File

@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -18,6 +19,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
useFetchCargoVendor = true;
cargoHash = "sha256-VLVoURqmUhhekNZ0a75bwjvSiLfaQ79IlltbmWVyBrI=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
meta = {
description = "Interactive JSON filter using jq";
mainProgram = "jnv";