Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
720 B
Nix
30 lines
720 B
Nix
{ 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;
|
|
};
|
|
})
|