2018-06-06 21:18:11 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib }:
|
2014-09-12 09:17:15 +01:00
|
|
|
|
2014-09-21 11:02:55 +01:00
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
|
|
|
|
|
2018-06-06 21:18:11 +01:00
|
|
|
let param =
|
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
|
|
|
|
version = "0.6";
|
|
|
|
sha256 = "18wpyxblz9jh5bfp0hpffnd0q8cq1b0dqp0f36vhqydfknlnpx8y";
|
|
|
|
} else {
|
|
|
|
version = "0.5";
|
|
|
|
sha256 = "1j17rhifdjv1z262dma148ywg34x0zjn8vczdrnkwajsm4qg1hw3";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2014-09-12 09:17:15 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2018-06-06 21:18:11 +01:00
|
|
|
name = "ocaml${ocaml.version}-functory-${param.version}";
|
2014-09-12 09:17:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-06 21:18:11 +01:00
|
|
|
url = "https://www.lri.fr/~filliatr/functory/download/functory-${param.version}.tar.gz";
|
|
|
|
inherit (param) sha256;
|
2014-09-12 09:17:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
2019-11-04 11:23:53 +00:00
|
|
|
installTargets = [ "ocamlfind-install" ];
|
2014-09-12 09:17:15 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.lri.fr/~filliatr/functory/;
|
|
|
|
description = "A distributed computing library for Objective Caml which facilitates distributed execution of parallelizable computations in a seamless fashion";
|
|
|
|
license = licenses.lgpl21;
|
2014-09-21 11:02:55 +01:00
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-09-12 09:17:15 +01:00
|
|
|
};
|
|
|
|
}
|