2021-10-30 19:25:29 +02:00
|
|
|
{ lib, fetchFromGitHub, pkg-config, ncurses, libev, buildDunePackage, ocaml
|
2021-07-17 13:56:24 +02:00
|
|
|
, cppo, dune-configurator, ocplib-endian, result
|
2019-08-31 09:04:43 +02:00
|
|
|
, mmap, seq
|
2021-02-08 09:04:12 +01:00
|
|
|
, ocaml-syntax-shims
|
2016-11-21 19:20:43 +01:00
|
|
|
}:
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
|
2022-04-25 22:35:24 +02:00
|
|
|
let inherit (lib) optional versionOlder; in
|
2018-09-28 17:28:36 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lwt";
|
2022-05-12 07:01:15 +02:00
|
|
|
version = "5.5.0";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
|
2021-10-30 19:25:29 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocsigen";
|
|
|
|
repo = "lwt";
|
|
|
|
rev = version;
|
2022-05-12 07:01:15 +02:00
|
|
|
sha256 = "sha256:1jbjz2rsz3j56k8vh5qlmm87hhkr250bs2m3dvpy9vsri8rkzj9z";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
};
|
|
|
|
|
2022-02-22 10:59:04 +01:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-03-01 13:00:00 +01:00
|
|
|
nativeBuildInputs = [ pkg-config cppo ]
|
2022-04-25 22:35:24 +02:00
|
|
|
++ optional (versionOlder ocaml.version "4.08") ocaml-syntax-shims;
|
2022-02-22 10:59:04 +01:00
|
|
|
buildInputs = [ dune-configurator ]
|
2022-04-25 22:35:24 +02:00
|
|
|
++ optional (versionOlder ocaml.version "4.07") ncurses;
|
2019-11-13 18:13:05 +01:00
|
|
|
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];
|
2018-03-25 20:26:39 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://ocsigen.org/lwt/";
|
|
|
|
description = "A cooperative threads library for OCaml";
|
2019-08-31 09:04:43 +02:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
license = lib.licenses.mit;
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
};
|
|
|
|
}
|