nixpkgs-suyu/pkgs/development/ocaml-modules/uri/sexp.nix
Anders Kaseorg 6920d8ca42 treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-04-25 13:35:24 -07:00

14 lines
410 B
Nix

{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
if lib.versionOlder 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";
}