11 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.02")
12 "ocaml_expat is not available for OCaml ${ocaml.version}"
16 pname = "ocaml${ocaml.version}-expat";
19 src = fetchFromGitHub {
23 hash = "sha256-eDA6MUcztaI+fpunWBdanNnPo9Y5gvbj/ViVcxYYEBg=";
27 substituteInPlace Makefile --replace "gcc" "\$(CC)"
34 buildInputs = [ expat ];
38 doCheck = lib.versionAtLeast ocaml.version "4.08";
39 checkTarget = "testall";
40 checkInputs = [ ounit ];
42 createFindlibDestdir = true;
45 description = "OCaml wrapper for the Expat XML parsing library";
46 license = lib.licenses.mit;
47 maintainers = [ lib.maintainers.vbgl ];
48 inherit (src.meta) homepage;
49 inherit (ocaml.meta) platforms;