Merge pull request #275224 from br337/nixos-unstable

nlohmann_json_schema_validator: init at 2.3.0
This commit is contained in:
Pol Dellaiera 2023-12-26 22:34:19 +01:00 committed by GitHub
commit cacf372fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -2623,6 +2623,12 @@
fingerprint = "F549 3B7F 9372 5578 FDD3 D0B8 A1BC 8428 323E CFE8";
}];
};
br337 = {
email = "brian.porumb@proton.me";
github = "br337";
githubId = 49288125;
name = "Brian Porumb";
};
bradediger = {
email = "brad@bradediger.com";
github = "bradediger";

View file

@ -0,0 +1,30 @@
{ stdenv
, lib
, fetchFromGitHub
, nlohmann_json
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nlohmann_json_schema_validator";
version = "2.3.0";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "pboettch";
repo = "json-schema-validator";
rev = finalAttrs.version;
hash = "sha256-Ybr5dNmjBBPTYPvgorJ6t2+zvAjxYQISWXJmgUVHBVE=";
};
buildInputs = [ nlohmann_json ];
nativeBuildInputs = [ cmake ];
meta = {
description = "JSON schema validator for JSON for Modern C++";
homepage = "https://github.com/pboettch/json-schema-validator";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ br337 ];
platforms = lib.platforms.all;
};
})