summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-13 11:17:25 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-13 14:17:56 +0100
commitb094768e99782162f6f3c2554a0f983d738f0539 (patch)
tree0a1ed0c97c638c168283d2d98ffa45be1301f1a9
parent01cf6fa04d22b1826166382ac14df0c5a1fd9841 (diff)
downloadnixlib-b094768e99782162f6f3c2554a0f983d738f0539.tar
nixlib-b094768e99782162f6f3c2554a0f983d738f0539.tar.gz
nixlib-b094768e99782162f6f3c2554a0f983d738f0539.tar.bz2
nixlib-b094768e99782162f6f3c2554a0f983d738f0539.tar.lz
nixlib-b094768e99782162f6f3c2554a0f983d738f0539.tar.xz
nixlib-b094768e99782162f6f3c2554a0f983d738f0539.tar.zst
nixlib-b094768e99782162f6f3c2554a0f983d738f0539.zip
Adds ocaml-gtktop
Gtktop is a small OCaml library to ease the creation of graphical
toplevels.

Homepage: http://zoggy.github.io/gtktop/
-rw-r--r--pkgs/development/ocaml-modules/gtktop/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/gtktop/default.nix b/pkgs/development/ocaml-modules/gtktop/default.nix
new file mode 100644
index 000000000000..ca0687882879
--- /dev/null
+++ b/pkgs/development/ocaml-modules/gtktop/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchurl, ocaml, camlp4, findlib, lablgtk-extras }:
+
+let pname = "gtktop-2.0"; in
+
+stdenv.mkDerivation {
+  name = "ocaml-${pname}";
+
+  src = fetchurl {
+    url = "http://zoggy.github.io/gtktop/${pname}.tar.gz";
+    sha256 = "0cpmnavvham9mwxknm6df90g9qxabcvn2kfwlf9mncqa0z3rknz6";
+  };
+
+  buildInputs = [ ocaml camlp4 findlib ];
+  propagatedBuildInputs = [ lablgtk-extras ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = http://zoggy.github.io/gtktop/;
+    description = "A small OCaml library to ease the creation of graphical toplevels";
+    license = stdenv.lib.licenses.lgpl3;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+    platforms = ocaml.meta.platforms;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 80ec3ecff77e..7fe6b9f53fe5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3747,6 +3747,8 @@ let
 
     gmetadom = callPackage ../development/ocaml-modules/gmetadom { };
 
+    gtktop = callPackage ../development/ocaml-modules/gtktop { };
+
     js_of_ocaml = callPackage ../development/tools/ocaml/js_of_ocaml { };
 
     lablgl = callPackage ../development/ocaml-modules/lablgl { };