2021-07-21 08:11:05 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, easy-format, biniou }:
|
2017-10-22 06:29:13 +00:00
|
|
|
|
2021-07-21 08:11:05 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yojson";
|
|
|
|
version = "1.7.0";
|
|
|
|
useDune2 = true;
|
2014-07-05 06:50:47 +00:00
|
|
|
|
2021-07-21 08:11:05 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
|
|
|
|
sha256 = "1iich6323npvvs8r50lkr4pxxqm9mf6w67cnid7jg1j1g5gwcvv5";
|
2014-07-05 06:50:47 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 08:11:05 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2019-10-31 10:16:15 +00:00
|
|
|
propagatedBuildInputs = [ easy-format biniou ];
|
2014-07-05 06:50:47 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-07-05 06:50:47 +00:00
|
|
|
description = "An optimized parsing and printing library for the JSON format";
|
2019-11-16 00:41:23 +00:00
|
|
|
homepage = "https://github.com/ocaml-community/${pname}";
|
2014-09-21 10:02:55 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-07-05 06:50:47 +00:00
|
|
|
};
|
2021-07-21 08:11:05 +00:00
|
|
|
}
|