summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-12 10:15:13 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-13 11:14:28 +0100
commit7169b87664d5c07e5867ecb48dc680d2ed5370a3 (patch)
tree20679d206d2f228adb6c8f25196f2c0c57d29527
parent81b57bb8ef757b3acf8316236eae9c9584d458c5 (diff)
downloadnixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.tar
nixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.tar.gz
nixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.tar.bz2
nixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.tar.lz
nixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.tar.xz
nixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.tar.zst
nixlib-7169b87664d5c07e5867ecb48dc680d2ed5370a3.zip
Adds ocaml-lablgtk-extras
Lablgtk-extras is a collection of libraries and modules useful when
developing OCaml/LablGtk2 applications.

Homepage: http://gtk-extras.forge.ocamlcore.org/
-rw-r--r--pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix23
-rw-r--r--pkgs/development/ocaml-modules/lablgtk-extras/default.nix24
-rw-r--r--pkgs/top-level/all-packages.nix5
3 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix b/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix
new file mode 100644
index 000000000000..fbe9898fd81e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/lablgtk-extras/1.4.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
+
+stdenv.mkDerivation {
+  name = "ocaml-lablgtk-extras-1.4";
+  src = fetchurl {
+    url = http://forge.ocamlcore.org/frs/download.php/1282/lablgtkextras-1.4.tar.gz;
+    sha256 = "09fqxwdib7r9yxynknc9gv3jw2hnhj5cak7q5jngk6m8rzvmhfcc";
+  };
+
+  buildInputs = [ ocaml findlib camlp4 ];
+  propagatedBuildInputs = [ config-file lablgtk xmlm ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    platforms = ocaml.meta.platforms;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+    homepage = http://gtk-extras.forge.ocamlcore.org/;
+    description = "A collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
+    license = stdenv.lib.licenses.lgpl2Plus;
+    branch = "1.4";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/lablgtk-extras/default.nix b/pkgs/development/ocaml-modules/lablgtk-extras/default.nix
new file mode 100644
index 000000000000..80e5a72abf52
--- /dev/null
+++ b/pkgs/development/ocaml-modules/lablgtk-extras/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
+
+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02";
+
+stdenv.mkDerivation {
+  name = "ocaml-lablgtk-extras-1.5";
+  src = fetchurl {
+    url = https://forge.ocamlcore.org/frs/download.php/1453/lablgtkextras-1.5.tar.gz;
+    sha256 = "1bgflgadmy2nqnqjf34zja0jy6f9wpqq8x22qcfilj9g8c9wkrmi";
+  };
+
+  buildInputs = [ ocaml findlib camlp4 ];
+  propagatedBuildInputs = [ config-file lablgtk xmlm ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    platforms = ocaml.meta.platforms;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+    homepage = http://gtk-extras.forge.ocamlcore.org/;
+    description = "A collection of libraries and modules useful when developing OCaml/LablGtk2 applications";
+    license = stdenv.lib.licenses.lgpl2Plus;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 775efdc5d949..74298308a00a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3758,6 +3758,11 @@ let
       inherit (gnome) libgnomecanvas libglade gtksourceview;
     };
 
+    lablgtk-extras =
+      if lib.versionOlder "4.02" ocaml_version
+      then callPackage ../development/ocaml-modules/lablgtk-extras { }
+      else callPackage ../development/ocaml-modules/lablgtk-extras/1.4.nix { };
+
     lablgtkmathview = callPackage ../development/ocaml-modules/lablgtkmathview {
       gtkmathview = callPackage ../development/libraries/gtkmathview { };
     };