3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/lwt/default.nix

33 lines
936 B
Nix
Raw Normal View History

{ lib, fetchzip, pkg-config, ncurses, libev, buildDunePackage, ocaml
, cppo, dune-configurator, ocplib-endian, result
, mmap, seq
2021-02-08 08:04:12 +00:00
, ocaml-syntax-shims
2016-11-21 18:20:43 +00:00
}:
let inherit (lib) optional versionAtLeast; in
buildDunePackage rec {
pname = "lwt";
2021-06-02 06:46:37 +01:00
version = "5.4.1";
2021-02-08 08:04:12 +00:00
useDune2 = true;
2015-02-16 10:23:43 +00:00
src = fetchzip {
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
2021-06-02 06:46:37 +01:00
sha256 = "0cq2qy23sa1a5zk6nja3c652mp29i84yfrkcwks6i8sdqwli36jy";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cppo dune-configurator ]
2021-02-08 08:04:12 +00:00
++ optional (!versionAtLeast ocaml.version "4.08") ocaml-syntax-shims
++ 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 19:26:39 +01:00
meta = {
homepage = "https://ocsigen.org/lwt/";
description = "A cooperative threads library for OCaml";
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.mit;
};
}