2017-03-04 06:33:30 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, jsonm, hex, sexplib, lwt }:
|
2015-01-24 23:34:56 +01:00
|
|
|
|
2017-02-18 22:52:46 +01:00
|
|
|
let version = "0.4.3"; in
|
2015-01-24 23:34:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-ezjsonm-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/ezjsonm/archive/${version}.tar.gz";
|
2017-02-18 22:52:46 +01:00
|
|
|
sha256 = "1y6p3ga6vj1wx5dyns7hjgd0qgrrn2hnn323a7y5didgci5pybls";
|
2015-01-24 23:34:56 +01:00
|
|
|
};
|
|
|
|
|
2017-03-04 06:33:30 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild lwt ];
|
2017-02-18 22:52:46 +01:00
|
|
|
propagatedBuildInputs = [ jsonm hex sexplib ];
|
2015-01-24 23:34:56 +01:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
configureFlags = "--enable-lwt";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An easy interface on top of the Jsonm library";
|
|
|
|
homepage = https://github.com/mirage/ezjsonm;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-24 23:34:56 +01:00
|
|
|
};
|
|
|
|
}
|