ocamlPackages.lwt3: remove at 3.3.0
This commit is contained in:
parent
2c09cfc097
commit
82af060040
@ -1,39 +0,0 @@
|
|||||||
{ stdenv, fetchzip, pkgconfig, ncurses, libev, dune
|
|
||||||
, ocaml, findlib, cppo
|
|
||||||
, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
|
||||||
, withP4 ? true
|
|
||||||
, camlp4 ? null
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
version = "3.3.0";
|
|
||||||
name = "ocaml${ocaml.version}-lwt-${version}";
|
|
||||||
|
|
||||||
src = fetchzip {
|
|
||||||
url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz";
|
|
||||||
sha256 = "0n87hcyl4svy0risj439wyfq6bl77qxq3nraqgdr1qbz5lskbq2j";
|
|
||||||
};
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
ocaml src/util/configure.ml -use-libev true -use-camlp4 ${if withP4 then "true" else "false"}
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
buildInputs = [ ncurses ocaml findlib dune cppo
|
|
||||||
ocaml-migrate-parsetree ppx_tools_versioned ]
|
|
||||||
++ stdenv.lib.optional withP4 camlp4;
|
|
||||||
propagatedBuildInputs = [ libev result ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
ocaml src/util/install_filter.ml
|
|
||||||
${dune.installPhase}
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "https://ocsigen.org/lwt/";
|
|
||||||
description = "A cooperative threads library for OCaml";
|
|
||||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
|
||||||
}
|
|
@ -422,10 +422,6 @@ let
|
|||||||
|
|
||||||
lwt2 = callPackage ../development/ocaml-modules/lwt/legacy.nix { };
|
lwt2 = callPackage ../development/ocaml-modules/lwt/legacy.nix { };
|
||||||
|
|
||||||
lwt3 = if lib.versionOlder "4.02" ocaml.version
|
|
||||||
then callPackage ../development/ocaml-modules/lwt/3.x.nix { }
|
|
||||||
else throw "lwt3 is not available for OCaml ${ocaml.version}";
|
|
||||||
|
|
||||||
lwt4 = callPackage ../development/ocaml-modules/lwt/4.x.nix { };
|
lwt4 = callPackage ../development/ocaml-modules/lwt/4.x.nix { };
|
||||||
|
|
||||||
ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt4 else lwt2;
|
ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt4 else lwt2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user