3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.lwt_ppx: init at 3.3.0

This commit is contained in:
Vincent Laporte 2018-03-27 20:34:08 +00:00
parent 0b53d63dad
commit be48c2effc
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,19 @@
{ stdenv, jbuilder, ocaml, findlib, lwt, ppx_tools_versioned }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-lwt_ppx-${lwt.version}";
inherit (lwt) src;
buildInputs = [ jbuilder ocaml findlib ppx_tools_versioned ];
propagatedBuildInputs = [ lwt ];
buildPhase = "jbuilder build -p lwt_ppx";
installPhase = "${jbuilder.installPhase} lwt_ppx.install";
meta = {
description = "Ppx syntax extension for Lwt";
inherit (lwt.meta) license platforms homepage maintainers;
};
}

View file

@ -374,6 +374,10 @@ let
ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt3 else lwt2;
lwt_ppx = callPackage ../development/ocaml-modules/lwt/ppx.nix {
lwt = lwt3;
};
lwt_react = callPackage ../development/ocaml-modules/lwt_react {
lwt = lwt3;
};