diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-07-12 21:25:59 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-07-12 21:26:00 +0000 |
commit | 5a7ab721b40f24375951ad1d48538abff21236bc (patch) | |
tree | 61f8dfc1ed382bbb3d2baeb1ced57a78a2af024b /pkgs | |
parent | 124071cacdd324ec0ec0dfd21f569d8388c18599 (diff) |
ocamlPackages.lwt_log: init at 1.0.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/lwt_log/default.nix | 24 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 4 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lwt_log/default.nix b/pkgs/development/ocaml-modules/lwt_log/default.nix new file mode 100644 index 0000000000000..bdabe677a858a --- /dev/null +++ b/pkgs/development/ocaml-modules/lwt_log/default.nix @@ -0,0 +1,24 @@ +{ stdenv, ocaml, findlib, jbuilder, lwt }: + +stdenv.mkDerivation rec { + version = "1.0.0"; + name = "ocaml${ocaml.version}-lwt_log-${version}"; + + inherit (lwt) src; + + buildInputs = [ ocaml findlib jbuilder ]; + + propagatedBuildInputs = [ lwt ]; + + buildPhase = "jbuilder build -p lwt_log"; + + inherit (jbuilder) installPhase; + + meta = { + description = "Lwt logging library (deprecated)"; + homepage = "https://github.com/aantron/lwt_log"; + license = stdenv.lib.licenses.lgpl21; + inherit (ocaml.meta) platforms; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index fb51cb9494424..93693203255aa 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -394,6 +394,10 @@ let ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt3 else lwt2; + lwt_log = callPackage ../development/ocaml-modules/lwt_log { + lwt = lwt3; + }; + lwt_ppx = callPackage ../development/ocaml-modules/lwt/ppx.nix { lwt = lwt3; }; |