2023-10-24 16:29:46 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "valijson";
|
2023-12-25 00:47:17 +00:00
|
|
|
version = "1.0.2";
|
2023-10-24 16:29:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tristanpenman";
|
|
|
|
repo = "valijson";
|
|
|
|
rev = "v${version}";
|
2023-12-25 00:47:17 +00:00
|
|
|
hash = "sha256-wvFdjsDtKH7CpbEpQjzWtLC4RVOU9+D2rSK0Xo1cJqo=";
|
2023-10-24 16:29:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Header-only C++ library for JSON Schema validation, with support for many popular parsers";
|
|
|
|
homepage = "https://github.com/tristanpenman/valijson";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|