13 nativeBuildInputs ? [ ],
15 platforms = ocaml.meta.platforms or [ ];
17 minimumOCamlVersion ? null,
18 createFindlibDestdir ? true,
23 if args ? minimumOCamlVersion && lib.versionOlder ocaml.version args.minimumOCamlVersion then
24 throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
30 name = "ocaml${ocaml.version}-${pname}-${version}";
37 ] ++ nativeBuildInputs;
39 inherit createFindlibDestdir;
47 ocaml setup.ml -configure --prefix $OCAMLFIND_DESTDIR --exec-prefix $out
61 ocaml setup.ml -install