about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-28 11:09:23 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-28 12:03:25 +0100
commita931de00b362477df1770b75f49e3ee8df4398fc (patch)
tree836dd1e20b374d98179008261b21713536c031e8 /pkgs/development/ocaml-modules
parent66e2f504168e166b3408264021f617e85f4d31dd (diff)
downloadnixlib-a931de00b362477df1770b75f49e3ee8df4398fc.tar
nixlib-a931de00b362477df1770b75f49e3ee8df4398fc.tar.gz
nixlib-a931de00b362477df1770b75f49e3ee8df4398fc.tar.bz2
nixlib-a931de00b362477df1770b75f49e3ee8df4398fc.tar.lz
nixlib-a931de00b362477df1770b75f49e3ee8df4398fc.tar.xz
nixlib-a931de00b362477df1770b75f49e3ee8df4398fc.tar.zst
nixlib-a931de00b362477df1770b75f49e3ee8df4398fc.zip
lambda-term: update from 1.6 to 1.8
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/lambda-term/1.6.nix42
-rw-r--r--pkgs/development/ocaml-modules/lambda-term/default.nix12
2 files changed, 49 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/lambda-term/1.6.nix b/pkgs/development/ocaml-modules/lambda-term/1.6.nix
new file mode 100644
index 000000000000..9f4b17f9b610
--- /dev/null
+++ b/pkgs/development/ocaml-modules/lambda-term/1.6.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl, libev, ocaml, findlib, ocaml_lwt, ocaml_react, zed, camlp4 }:
+
+stdenv.mkDerivation rec {
+  version = "1.6";
+  name = "lambda-term-${version}";
+
+  src = fetchurl {
+    url = https://github.com/diml/lambda-term/archive/1.6.tar.gz;
+    sha256 = "1rhfixdgpylxznf6sa9wr31wb4pjzpfn5mxhxqpbchmpl2afwa09";
+  };
+
+  buildInputs = [ libev ocaml findlib ocaml_lwt ocaml_react ];
+
+  propagatedBuildInputs = [ camlp4 zed ];
+
+  createFindlibDestdir = true;
+
+  meta = { description = "Terminal manipulation library for OCaml";
+    longDescription = ''
+    Lambda-term is a cross-platform library for
+    manipulating the terminal. It provides an abstraction for keys,
+    mouse events, colors, as well as a set of widgets to write
+    curses-like applications.
+
+    The main objective of lambda-term is to provide a higher level
+    functional interface to terminal manipulation than, for example,
+    ncurses, by providing a native OCaml interface instead of bindings to
+    a C library.
+
+    Lambda-term integrates with zed to provide text edition facilities in
+    console applications.
+    '';
+
+    homepage = https://github.com/diml/lambda-term;
+    license = stdenv.lib.licenses.bsd3;
+    platforms = ocaml.meta.platforms;
+    branch = "1.6";
+    maintainers = [
+      stdenv.lib.maintainers.gal_bolle
+    ];
+  };
+}
diff --git a/pkgs/development/ocaml-modules/lambda-term/default.nix b/pkgs/development/ocaml-modules/lambda-term/default.nix
index 1baea569dbde..0186ab055f5e 100644
--- a/pkgs/development/ocaml-modules/lambda-term/default.nix
+++ b/pkgs/development/ocaml-modules/lambda-term/default.nix
@@ -1,17 +1,19 @@
 { stdenv, fetchurl, libev, ocaml, findlib, ocaml_lwt, ocaml_react, zed, camlp4 }:
 
+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
+
 stdenv.mkDerivation rec {
-  version = "1.6";
+  version = "1.8";
   name = "lambda-term-${version}";
 
   src = fetchurl {
-    url = https://github.com/diml/lambda-term/archive/1.6.tar.gz;
-    sha256 = "1rhfixdgpylxznf6sa9wr31wb4pjzpfn5mxhxqpbchmpl2afwa09";
+    url = https://github.com/diml/lambda-term/archive/1.8.tar.gz;
+    sha256 = "0hy11x48q5bbh9czjp0w756cyxzr2c6qcnfm5n9f0i1l4qljwpgc";
   };
 
-  buildInputs = [ libev ocaml findlib ocaml_lwt ocaml_react ];
+  buildInputs = [ libev ocaml findlib ocaml_react ];
 
-  propagatedBuildInputs = [ camlp4 zed ];
+  propagatedBuildInputs = [ camlp4 zed ocaml_lwt ];
 
   createFindlibDestdir = true;