fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, ocaml, findlib }:
2
3assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
4
5let param =
6 if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
7 version = "0.6";
8 sha256 = "18wpyxblz9jh5bfp0hpffnd0q8cq1b0dqp0f36vhqydfknlnpx8y";
9 } else {
10 version = "0.5";
11 sha256 = "1j17rhifdjv1z262dma148ywg34x0zjn8vczdrnkwajsm4qg1hw3";
12 };
13in
14
15stdenv.mkDerivation {
16
17 name = "ocaml${ocaml.version}-functory-${param.version}";
18
19 src = fetchurl {
20 url = "https://www.lri.fr/~filliatr/functory/download/functory-${param.version}.tar.gz";
21 inherit (param) sha256;
22 };
23
24 buildInputs = [ ocaml findlib ];
25
26 installTargets = "ocamlfind-install";
27
28 createFindlibDestdir = true;
29
30 meta = with stdenv.lib; {
31 homepage = https://www.lri.fr/~filliatr/functory/;
32 description = "A distributed computing library for Objective Caml which facilitates distributed execution of parallelizable computations in a seamless fashion";
33 license = licenses.lgpl21;
34 maintainers = [ maintainers.vbgl ];
35 platforms = ocaml.meta.platforms or [];
36 };
37}