2020-04-24 23:36:52 +00:00
|
|
|
{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
|
|
|
|
|
|
|
|
if !lib.versionAtLeast ocaml.version "4.04"
|
|
|
|
then throw "uri-sexp is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "uri-sexp";
|
2020-12-09 12:39:15 +00:00
|
|
|
inherit (uri) version useDune2 src meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
checkInputs = [ ounit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ];
|
2020-12-09 12:39:15 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|