json-schema-catalog-rs: add versionCheckHook
This commit is contained in:
committed by
Robert Hensing
parent
c598c6d576
commit
72eaf394d3
@@ -4,6 +4,7 @@
|
||||
lib,
|
||||
nix-update-script,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
@@ -19,6 +20,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
cargoHash = "sha256-YI2LN2DBzC1B5wCZOrGAZi/hkKHoAm6xLkdJ+8DDFo8=";
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgram = "${placeholder "out"}/bin/json-schema-catalog";
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
run = callPackage ./test-run.nix { json-schema-catalog-rs = finalAttrs.finalPackage; };
|
||||
|
||||
Reference in New Issue
Block a user