summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/logs
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2017-02-18 22:57:45 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-02-19 04:36:14 +0000
commit4f0feb4f5f2f4662a075f015d9675b25865b3ae9 (patch)
tree93b166c29c396072f49d306682ec51b97d61c44d /pkgs/development/ocaml-modules/logs
parentc9c7c3e9cd7c5cf05c9890f4adab5121226b72ce (diff)
downloadnixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.tar
nixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.tar.gz
nixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.tar.bz2
nixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.tar.lz
nixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.tar.xz
nixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.tar.zst
nixpkgs-4f0feb4f5f2f4662a075f015d9675b25865b3ae9.zip
ocaml-logs: init at 0.6.2
Diffstat (limited to 'pkgs/development/ocaml-modules/logs')
-rw-r--r--pkgs/development/ocaml-modules/logs/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix
new file mode 100644
index 00000000000..ab0b6c8579b
--- /dev/null
+++ b/pkgs/development/ocaml-modules/logs/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam
+, topkg, result, lwt, cmdliner, fmt }:
+let
+  pname = "logs";
+  webpage = "http://erratique.ch/software/${pname}";
+in
+
+assert stdenv.lib.versionAtLeast ocaml.version "4.01.0";
+
+stdenv.mkDerivation rec {
+  name = "ocaml-${pname}-${version}";
+  version = "0.6.2";
+
+  src = fetchurl {
+    url = "${webpage}/releases/${pname}-${version}.tbz";
+    sha256 = "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853";
+  };
+
+  unpackCmd = "tar xjf $src";
+
+  buildInputs = [ ocaml findlib ocamlbuild opam topkg fmt cmdliner lwt ];
+  propagatedBuildInputs = [ result ];
+
+  buildPhase = ''
+    ocaml -I ${findlib}/lib/ocaml/${ocaml.version}/site-lib/ pkg/pkg.ml build \
+      --with-js_of_ocaml false
+    '';
+
+  inherit (topkg) installPhase;
+
+  createFindlibDestdir = true;
+
+  meta = with stdenv.lib; {
+    description = "Logging infrastructure for OCaml";
+    homepage = "${webpage}";
+    inherit (ocaml.meta) platforms;
+    maintainers = [ maintainers.sternenseemann ];
+    license = licenses.isc;
+  };
+}