Merge pull request #43440 from vbgl/ocaml-lwt_log-1.0.0
ocamlPackages.lwt_log: init at 1.0.0
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
{ stdenv, fetchzip, pkgconfig, ncurses, libev, jbuilder
|
||||
, ocaml, findlib, camlp4, cppo
|
||||
, ocaml, findlib, cppo
|
||||
, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
||||
, withP4 ? !stdenv.lib.versionAtLeast ocaml.version "4.07"
|
||||
, camlp4 ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -13,12 +15,13 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
ocaml src/util/configure.ml -use-libev true -use-camlp4 true
|
||||
ocaml src/util/configure.ml -use-libev true -use-camlp4 ${if withP4 then "true" else "false"}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ ncurses ocaml findlib jbuilder camlp4 cppo
|
||||
ocaml-migrate-parsetree ppx_tools_versioned ];
|
||||
buildInputs = [ ncurses ocaml findlib jbuilder cppo
|
||||
ocaml-migrate-parsetree ppx_tools_versioned ]
|
||||
++ stdenv.lib.optional withP4 camlp4;
|
||||
propagatedBuildInputs = [ libev result ];
|
||||
|
||||
installPhase = ''
|
||||
|
||||
24
pkgs/development/ocaml-modules/lwt_log/default.nix
Normal file
24
pkgs/development/ocaml-modules/lwt_log/default.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user