2018-11-05 10:21:46 +00:00
|
|
|
{ stdenv, fetchzip, pkgconfig, ncurses, libev, buildDunePackage, ocaml
|
|
|
|
, cppo, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
2016-11-21 18:20:43 +00: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 15:40:04 +00:00
|
|
|
|
2018-09-28 16:28:36 +01:00
|
|
|
let inherit (stdenv.lib) optional versionAtLeast; in
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lwt";
|
2018-09-28 16:28:36 +01:00
|
|
|
version = "4.1.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 15:40:04 +00:00
|
|
|
|
2015-02-16 10:23:43 +00:00
|
|
|
src = fetchzip {
|
2018-11-05 10:21:46 +00:00
|
|
|
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
|
2018-09-28 16:28:36 +01:00
|
|
|
sha256 = "16wnc61kfj54z4q8sn9f5iik37pswz328hcz3z6rkza3kh3s6wmm";
|
* 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 15:40:04 +00:00
|
|
|
};
|
|
|
|
|
2018-03-25 19:26:39 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-11-05 10:21:46 +00:00
|
|
|
buildInputs = [ cppo ocaml-migrate-parsetree ppx_tools_versioned ]
|
|
|
|
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
|
2018-03-25 19:26:39 +01:00
|
|
|
propagatedBuildInputs = [ libev result ];
|
|
|
|
|
2018-09-28 16:28:36 +01:00
|
|
|
configurePhase = "ocaml src/util/configure.ml -use-libev true";
|
2018-03-25 19:26:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://ocsigen.org/lwt/";
|
|
|
|
description = "A cooperative threads library for OCaml";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
* 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 15:40:04 +00:00
|
|
|
};
|
|
|
|
}
|