2021-07-24 12:14:16 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, easy-format, biniou }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yojson";
|
|
|
|
version = "1.7.0";
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
|
|
|
|
sha256 = "1iich6323npvvs8r50lkr4pxxqm9mf6w67cnid7jg1j1g5gwcvv5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ easy-format biniou ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An optimized parsing and printing library for the JSON format";
|
|
|
|
homepage = "https://github.com/ocaml-community/${pname}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
2021-07-24 12:14:16 +00:00
|
|
|
}
|