nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 ocaml, 6 findlib, 7}: 8 9let 10 param = 11 if lib.versionAtLeast ocaml.version "4.02" then 12 { 13 version = "0.6"; 14 sha256 = "18wpyxblz9jh5bfp0hpffnd0q8cq1b0dqp0f36vhqydfknlnpx8y"; 15 } 16 else 17 { 18 version = "0.5"; 19 sha256 = "1j17rhifdjv1z262dma148ywg34x0zjn8vczdrnkwajsm4qg1hw3"; 20 }; 21in 22 23stdenv.mkDerivation { 24 pname = "ocaml${ocaml.version}-functory"; 25 inherit (param) version; 26 27 src = fetchurl { 28 url = "https://www.lri.fr/~filliatr/functory/download/functory-${param.version}.tar.gz"; 29 inherit (param) sha256; 30 }; 31 32 nativeBuildInputs = [ 33 ocaml 34 findlib 35 ]; 36 37 strictDeps = true; 38 39 installTargets = [ "ocamlfind-install" ]; 40 41 createFindlibDestdir = true; 42 43 meta = { 44 homepage = "https://www.lri.fr/~filliatr/functory/"; 45 description = "Distributed computing library for Objective Caml which facilitates distributed execution of parallelizable computations in a seamless fashion"; 46 license = lib.licenses.lgpl21; 47 maintainers = [ lib.maintainers.vbgl ]; 48 broken = lib.versionAtLeast ocaml.version "5.0"; 49 inherit (ocaml.meta) platforms; 50 }; 51}