2019-08-31 08:04:43 +01:00
|
|
|
{ lib, fetchzip, pkgconfig, ncurses, libev, buildDunePackage, ocaml
|
2018-11-05 10:21:46 +00:00
|
|
|
, cppo, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
2019-08-31 08:04:43 +01:00
|
|
|
, mmap, seq
|
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
|
|
|
|
2019-08-31 08:04:43 +01:00
|
|
|
let inherit (lib) optional versionAtLeast; in
|
2018-09-28 16:28:36 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lwt";
|
2019-08-31 08:04:43 +01:00
|
|
|
version = "4.2.1";
|
* 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";
|
2019-08-31 08:04:43 +01:00
|
|
|
sha256 = "1hz24fyhpm7d6603v399pgxvdl236srwagqja41ljvjx83y10ysr";
|
* 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
|
|
|
};
|
|
|
|
|
2019-08-31 08:04:43 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace lwt.opam \
|
|
|
|
--replace 'version: "dev"' 'version: "${version}"'
|
|
|
|
'';
|
|
|
|
|
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;
|
2019-08-31 08:04:43 +01:00
|
|
|
propagatedBuildInputs = [ libev mmap seq result ];
|
2018-03-25 19:26:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://ocsigen.org/lwt/";
|
|
|
|
description = "A cooperative threads library for OCaml";
|
2019-08-31 08:04:43 +01: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 15:40:04 +00:00
|
|
|
};
|
|
|
|
}
|