summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/uri/sexp.nix
blob: 83be70c3649773f49ea9aef82306b30a9c814686 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 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";
}