b55a4ee46f
GitOrigin-RevId: e9158eca70ae59e73fae23be5d13d3fa0cfc78b4
14 lines
413 B
Nix
14 lines
413 B
Nix
{ 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";
|
|
inherit (uri) version useDune2 src meta;
|
|
|
|
checkInputs = [ ounit ];
|
|
propagatedBuildInputs = [ ppx_sexp_conv sexplib0 uri ];
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
}
|