2022-08-09 14:14:28 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, seq }:
|
2017-10-22 06:29:13 +00:00
|
|
|
|
2021-07-21 08:11:05 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yojson";
|
2023-10-17 05:02:56 +00:00
|
|
|
version = "2.1.1";
|
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";
|
2023-10-17 05:02:56 +00:00
|
|
|
hash = "sha256-1YGDIHsZjcBlhmI5Bm4HTDT54TnA2cQXWjiAl5DogXM=";
|
2014-07-05 06:50:47 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 08:11:05 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2022-08-09 14:14:28 +00:00
|
|
|
propagatedBuildInputs = [ seq ];
|
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 ];
|
2022-05-09 17:30:27 +00:00
|
|
|
mainProgram = "ydump";
|
2014-07-05 06:50:47 +00:00
|
|
|
};
|
2021-07-21 08:11:05 +00:00
|
|
|
}
|