2016-09-14 01:21:56 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, jsonm, hex, sexplib_p4, lwt }:
|
2015-01-24 22:34:56 +00:00
|
|
|
|
2015-02-05 17:18:26 +00:00
|
|
|
let version = "0.4.1"; in
|
2015-01-24 22:34:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-ezjsonm-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/ezjsonm/archive/${version}.tar.gz";
|
2015-02-05 17:18:26 +00:00
|
|
|
sha256 = "0cfjh8awajvw6kkmxr65dvri4k6h29pynxvk76a8c2lkixpsc095";
|
2015-01-24 22:34:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
2016-09-14 01:21:56 +01:00
|
|
|
propagatedBuildInputs = [ jsonm hex sexplib_p4 lwt ];
|
2015-01-24 22:34:56 +00: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 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-24 22:34:56 +00:00
|
|
|
};
|
|
|
|
}
|