2017-12-14 07:36:29 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild
|
2017-02-18 21:57:45 +00:00
|
|
|
, topkg, result, lwt, cmdliner, fmt }:
|
|
|
|
let
|
|
|
|
pname = "logs";
|
2019-04-22 09:14:28 +01:00
|
|
|
webpage = "https://erratique.ch/software/${pname}";
|
2017-02-18 21:57:45 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "4.01.0";
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml-${pname}-${version}";
|
2019-05-22 08:03:39 +01:00
|
|
|
version = "0.6.3";
|
2017-02-18 21:57:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
2019-05-22 08:03:39 +01:00
|
|
|
sha256 = "1lkhr7i44xw4kpfbhgj3rbqy3dv5bfm4kyrbl8a9rfafddcxlwss";
|
2017-02-18 21:57:45 +00:00
|
|
|
};
|
|
|
|
|
2017-12-14 07:36:29 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg fmt cmdliner lwt ];
|
2017-02-18 21:57:45 +00:00
|
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
|
2017-12-14 07:36:29 +00:00
|
|
|
buildPhase = "${topkg.run} build --with-js_of_ocaml false";
|
2017-02-18 21:57:45 +00:00
|
|
|
|
|
|
|
inherit (topkg) installPhase;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Logging infrastructure for OCaml";
|
|
|
|
homepage = "${webpage}";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
license = licenses.isc;
|
|
|
|
};
|
|
|
|
}
|