ocamlPackages.ocaml_lwt: 4.1.0 -> 4.2.1
Ensures compatibility with OCaml 4.08
This commit is contained in:
parent
cd9f199c2b
commit
22c50545f2
@ -1,29 +1,33 @@
|
|||||||
{ stdenv, fetchzip, pkgconfig, ncurses, libev, buildDunePackage, ocaml
|
{ lib, fetchzip, pkgconfig, ncurses, libev, buildDunePackage, ocaml
|
||||||
, cppo, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
, cppo, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
||||||
|
, mmap, seq
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let inherit (stdenv.lib) optional versionAtLeast; in
|
let inherit (lib) optional versionAtLeast; in
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "lwt";
|
pname = "lwt";
|
||||||
version = "4.1.0";
|
version = "4.2.1";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
|
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
|
||||||
sha256 = "16wnc61kfj54z4q8sn9f5iik37pswz328hcz3z6rkza3kh3s6wmm";
|
sha256 = "1hz24fyhpm7d6603v399pgxvdl236srwagqja41ljvjx83y10ysr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace lwt.opam \
|
||||||
|
--replace 'version: "dev"' 'version: "${version}"'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ cppo ocaml-migrate-parsetree ppx_tools_versioned ]
|
buildInputs = [ cppo ocaml-migrate-parsetree ppx_tools_versioned ]
|
||||||
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
|
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
|
||||||
propagatedBuildInputs = [ libev result ];
|
propagatedBuildInputs = [ libev mmap seq result ];
|
||||||
|
|
||||||
configurePhase = "ocaml src/util/configure.ml -use-libev true";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://ocsigen.org/lwt/";
|
homepage = "https://ocsigen.org/lwt/";
|
||||||
description = "A cooperative threads library for OCaml";
|
description = "A cooperative threads library for OCaml";
|
||||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
maintainers = [ lib.maintainers.vbgl ];
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = lib.licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user