From c5976df9fb233aa6f3a5f02543e9ef01e0239bca Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 21 Jan 2026 15:07:48 +0900 Subject: [PATCH] jsonschema-cli: 0.38.1 -> 0.40.0 Diff: https://github.com/Stranger6667/jsonschema/compare/rust-v0.38.1...rust-v0.40.0 Without $SSL_CERT_FILE, several new HTTP tests in 0.40.0 will fail. ``` failures: test_http_connect_timeout_option test_http_options_ndjson_output test_http_options_with_external_ref test_http_timeout_option ``` --- pkgs/by-name/js/jsonschema-cli/package.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/js/jsonschema-cli/package.nix b/pkgs/by-name/js/jsonschema-cli/package.nix index a5eb941f4e09..825bfa5f78c3 100644 --- a/pkgs/by-name/js/jsonschema-cli/package.nix +++ b/pkgs/by-name/js/jsonschema-cli/package.nix @@ -2,21 +2,26 @@ lib, fetchCrate, rustPlatform, + cacert, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "jsonschema-cli"; - version = "0.38.1"; + version = "0.40.0"; src = fetchCrate { pname = "jsonschema-cli"; inherit (finalAttrs) version; - hash = "sha256-W3pyT5DK8ADkWi7znuTDTq1hjRTOwhg9rSmuGZTX8r0="; + hash = "sha256-giHE1iawz3iahO98C5Wq6QboLX2nTzeK/xhASzzDmAY="; }; - cargoHash = "sha256-C8A+cyNix0Q9OACyyPM3A74jZKNBCGz/622YsZqtY2E="; + cargoHash = "sha256-PhWT0ewOQ1ZUQ8xyCeDTNs96XjFGmk+uzvDSWANDCjo="; + + preCheck = '' + export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt + ''; nativeInstallCheckInputs = [ versionCheckHook