Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "valijson";
10 version = "1.0.6";
11
12 src = fetchFromGitHub {
13 owner = "tristanpenman";
14 repo = "valijson";
15 rev = "v${version}";
16 hash = "sha256-3hQrCCDOrJx4XwTzJNTRPLghd+uoWKVDISa8rLaGiRM=";
17 };
18
19 nativeBuildInputs = [
20 cmake
21 ];
22
23 meta = with lib; {
24 description = "Header-only C++ library for JSON Schema validation, with support for many popular parsers";
25 homepage = "https://github.com/tristanpenman/valijson";
26 license = licenses.bsd2;
27 platforms = platforms.all;
28 };
29}