@@ -0,0 +1,25 @@
1+{ stdenv, fetchFromGitHub, cmake }:
2+
3+stdenv.mkDerivation rec {
4+ name = "nlohmann_json-${version}";
5+ version = "2.0.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "nlohmann";
9+ repo = "json";
10+ rev = "v${version}";
11+ sha256 = "10sk8d23vh0c7b3qafjz2n8r5jv8vc275bl069ikhqnx1zxv6hwp";
12+ };
13+
14+ buildInputs = [ cmake ];
15+
16+ doCheck = true;
17+ checkTarget = "test";
18+
19+ meta = with stdenv.lib; {
20+ description = "Header only C++ library for the JSON file format";
21+ homepage = https://github.com/nlohmann/json;
22+ license = licenses.mit;
23+ platforms = platforms.all;
24+ };
25+}