2020-04-24 23:36:52 +00:00
|
|
|
{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
if lib.versionOlder ocaml.version "4.04"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "uri-sexp is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "uri-sexp";
|
2023-04-12 12:48:02 +00:00
|
|
|
inherit (uri) version src meta;
|
|
|
|
|
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +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
|
|
|
}
|