summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorJiri Marsik <jiri.marsik89@gmail.com>2014-10-28 14:03:14 +0100
committerJiri Marsik <jiri.marsik89@gmail.com>2014-10-28 14:03:14 +0100
commit50fccd034731373ac2e5c01f2f1dde030fd70a7f (patch)
treedc600e32415e09b2e698cc6701563aefc73f524d /pkgs/development/ocaml-modules
parentc6fa8d0fd3f6a01d8eb9eec347f000e8dcff30c2 (diff)
downloadnixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.tar
nixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.tar.gz
nixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.tar.bz2
nixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.tar.lz
nixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.tar.xz
nixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.tar.zst
nixlib-50fccd034731373ac2e5c01f2f1dde030fd70a7f.zip
Added bolt-1.4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/bolt/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/bolt/default.nix b/pkgs/development/ocaml-modules/bolt/default.nix
new file mode 100644
index 000000000000..9b0efd816bdc
--- /dev/null
+++ b/pkgs/development/ocaml-modules/bolt/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchurl, ocaml, findlib, which }:
+
+let inherit (stdenv.lib) getVersion versionAtLeast; in
+
+assert versionAtLeast (getVersion ocaml) "4.00.0";
+assert versionAtLeast (getVersion findlib) "1.3.3";
+
+stdenv.mkDerivation rec {
+
+  name = "bolt-1.4";
+
+  src = fetchurl {
+    url = "https://forge.ocamlcore.org/frs/download.php/1043/${name}.tar.gz";
+    sha256 = "1c807wrpxra9sbb34lajhimwra28ldxv04m570567lh2b04n38zy";
+  };
+
+  buildInputs = [ ocaml findlib which ];
+
+  # The custom `configure` script does not expect the --prefix
+  # option. Installation is handled by ocamlfind.
+  dontAddPrefix = true;
+
+  createFindlibDestdir = true;
+
+  buildFlags = "all";
+
+  doCheck = true;
+  checkTarget = "tests";
+
+  meta = with stdenv.lib; {
+    homepage = "http://bolt.x9c.fr";
+    description = "A logging tool for the OCaml language";
+    longDescription = ''
+      Bolt is a logging tool for the OCaml language. It is inspired by and
+      modeled after the famous log4j logging framework for Java.
+    '';
+    license = licenses.lgpl3;
+    platforms = ocaml.meta.platforms;
+    maintainers = [ maintainers.jirkamarsik ];
+  };
+}