about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/lwt/default.nix
blob: 9ef109063655f87ac5bc24e7a4de97f0a439a9a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{stdenv, fetchurl, which, cryptopp, ocaml, findlib, ocaml_react, ocaml_ssl}:

let
  ocaml_version = (builtins.parseDrvName ocaml.name).version;
  version = "2.1.1";
in

stdenv.mkDerivation {
  name = "ocaml-lwt-${version}";

  src = fetchurl {
    url = "http://ocsigen.org/download/lwt-${version}.tar.gz";
    sha256 = "1zjn0sgihryshancn4kna1xslhc8gifliny1qd3a85f72xxxnw0w";
  };

  buildInputs = [which cryptopp ocaml findlib ocaml_react ocaml_ssl];

  configurePhase = "true";

  meta = {
    homepage = http://ocsigen.org/lwt;
    description = "Lightweight thread library for Objective Caml";
    license = "LGPL";
    platforms = ocaml.meta.platforms;
    maintainers = [
      stdenv.lib.maintainers.z77z
    ];
  };
}