mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
source-meta-json-schema: 16.7.0 -> 16.12.0
This commit is contained in:
committed by
Alberto Merino
parent
b764615d41
commit
b544439dee
@@ -3,23 +3,38 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
openssl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "source-meta-json-schema";
|
||||
version = "16.7.0";
|
||||
version = "16.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sourcemeta";
|
||||
repo = "jsonschema";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-mW3tVzXy/CY6xTdG3/xkVMB2Z8iT88ZOrG390mdUwbQ=";
|
||||
hash = "sha256-79onN0W+QnoJW9aj8sS6kJUTliQuR/TK3DCnMBHcMsM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
# Force use system OPENSSL instead of build (avoid compile the CryptoKit Swift shim on Darwin)
|
||||
(lib.cmakeBool "SOURCEMETA_CORE_CRYPTO_USE_SYSTEM_OPENSSL" true)
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# Upstream tries to download a clang-tidy from PyPI during configure on Darwin
|
||||
# This only affect on Darwin
|
||||
(lib.cmakeBool "SOURCEMETA_CORE_CLANG_TIDY" false)
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/sourcemeta/jsonschema";
|
||||
description = "CLI for working with JSON Schema. Covers formatting, linting, testing, bundling, and more for both local development and CI/CD pipelines ";
|
||||
|
||||
Reference in New Issue
Block a user