2014-07-05 07:50:47 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, cppo, easy-format, biniou}:
|
|
|
|
let
|
|
|
|
pname = "yojson";
|
|
|
|
version = "1.1.8";
|
|
|
|
webpage = "http://mjambon.com/${pname}.html";
|
|
|
|
in
|
2014-08-19 17:39:45 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-07-05 07:50:47 +01:00
|
|
|
|
2014-08-19 17:39:45 +01:00
|
|
|
name = "ocaml-${pname}-${version}";
|
2014-07-05 07:50:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-19 17:39:45 +01:00
|
|
|
url = "http://mjambon.com/releases/${pname}/${pname}-${version}.tar.gz";
|
2014-07-05 07:50:47 +01:00
|
|
|
sha256 = "0ayx17dimnpavdfyq6dk9xv2x1fx69by85vc6vl3nqxjkcv5d2rv";
|
|
|
|
};
|
|
|
|
|
2014-08-19 17:39:45 +01:00
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cppo easy-format biniou ];
|
2014-07-05 07:50:47 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out)";
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-09-21 11:02:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-05 07:50:47 +01:00
|
|
|
description = "An optimized parsing and printing library for the JSON format";
|
|
|
|
homepage = "${webpage}";
|
2014-09-21 11:02:55 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-07-05 07:50:47 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|