2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib }:
|
2014-09-12 09:17:15 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
assert lib.versionAtLeast (lib.getVersion ocaml) "3.11";
|
2014-09-21 11:02:55 +01:00
|
|
|
|
2018-06-06 21:18:11 +01:00
|
|
|
let param =
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.02" then {
|
2018-06-06 21:18:11 +01:00
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.lri.fr/~filliatr/functory/";
|
2014-09-12 09:17:15 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|