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/
This commit is contained in:
Vincent Laporte 2015-01-12 10:15:13 +01:00
parent 81b57bb8ef
commit 7169b87664
3 changed files with 52 additions and 0 deletions

View File

@ -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";
};
}

View File

@ -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;
};
}

View File

@ -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 { };
};