1 { lib, stdenv, fetchurl, ocaml, findlib }:
4 if lib.versionAtLeast ocaml.version "4.02" then {
6 sha256 = "18wpyxblz9jh5bfp0hpffnd0q8cq1b0dqp0f36vhqydfknlnpx8y";
9 sha256 = "1j17rhifdjv1z262dma148ywg34x0zjn8vczdrnkwajsm4qg1hw3";
13 lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
14 "functory is not available for OCaml ${ocaml.version}"
17 pname = "ocaml${ocaml.version}-functory";
18 inherit (param) version;
21 url = "https://www.lri.fr/~filliatr/functory/download/functory-${param.version}.tar.gz";
22 inherit (param) sha256;
25 nativeBuildInputs = [ ocaml findlib ];
29 installTargets = [ "ocamlfind-install" ];
31 createFindlibDestdir = true;
34 homepage = "https://www.lri.fr/~filliatr/functory/";
35 description = "A distributed computing library for Objective Caml which facilitates distributed execution of parallelizable computations in a seamless fashion";
36 license = licenses.lgpl21;
37 maintainers = [ maintainers.vbgl ];
38 inherit (ocaml.meta) platforms;