40 lines
965 B
Nix
40 lines
965 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchCrate,
|
||
|
|
rustPlatform,
|
||
|
|
versionCheckHook,
|
||
|
|
nix-update-script,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
|
pname = "jsonschema-cli";
|
||
|
|
version = "0.33.0";
|
||
|
|
|
||
|
|
src = fetchCrate {
|
||
|
|
pname = "jsonschema-cli";
|
||
|
|
inherit (finalAttrs) version;
|
||
|
|
hash = "sha256-09u50o4dg7keJgFC4xlRJ0LtkR7ZxmxnqLdEVKpE77E=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-zY4PtuQuUMvuR7gr42iytR2CW7bQBfbB0L6JE8cSQh8=";
|
||
|
|
|
||
|
|
nativeInstallCheckInputs = [
|
||
|
|
versionCheckHook
|
||
|
|
];
|
||
|
|
doInstallCheck = true;
|
||
|
|
versionCheckProgramArg = "--version";
|
||
|
|
|
||
|
|
passthru.updateScript = nix-update-script { };
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Fast command-line tool for JSON Schema validation";
|
||
|
|
homepage = "https://github.com/Stranger6667/jsonschema";
|
||
|
|
changelog = "https://github.com/Stranger6667/jsonschema/releases/tag/rust-v${finalAttrs.version}";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = with lib.maintainers; [
|
||
|
|
kachick
|
||
|
|
];
|
||
|
|
mainProgram = "jsonschema-cli";
|
||
|
|
};
|
||
|
|
})
|