2022-09-09 14:08:57 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, seq }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yojson";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.1.0";
|
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";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-n8sf8ttYqyWfkih5awraR5Tq6XF3sYMzcTgMTk+QsV0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "ydump";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-07-24 12:14:16 +00:00
|
|
|
}
|