nixpkgs/pkgs/development/ocaml-modules/lwt/default.nix

29 lines
832 B
Nix
Raw Normal View History

{ lib, fetchzip, pkgconfig, ncurses, libev, buildDunePackage, ocaml
2019-11-13 17:13:05 +00:00
, cppo, ocaml-migrate-parsetree, ocplib-endian, result
, mmap, seq
2016-11-21 18:20:43 +00:00
}:
let inherit (lib) optional versionAtLeast; in
buildDunePackage rec {
pname = "lwt";
version = "5.3.0";
2015-02-16 10:23:43 +00:00
src = fetchzip {
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
sha256 = "15hgy3220m2b8imipa514n7l65m1h5lc6l1hanqwwvs7ghh2aqp2";
};
2018-03-25 18:26:39 +00:00
nativeBuildInputs = [ pkgconfig ];
2019-11-13 17:13:05 +00:00
buildInputs = [ cppo ocaml-migrate-parsetree ]
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
2019-11-13 17:13:05 +00:00
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];
2018-03-25 18:26:39 +00:00
meta = {
homepage = "https://ocsigen.org/lwt/";
description = "A cooperative threads library for OCaml";
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.mit;
};
}