diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 12d813f..3e68917 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -26,6 +26,7 @@ #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages gcc) + #:use-module (gnu packages gtk) #:use-module (gnu packages base) #:use-module (gnu packages emacs) #:use-module (gnu packages texinfo) @@ -472,3 +473,37 @@ a collection of files and directories to be stored on different hosts brought up to date by propagating the changes in each replica to the other.") (license gpl3+))) + +(define-public lablgtk + (package + (name "lablgtk") + (version "2.18.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://forge.ocamlcore.org/frs/download.php/" + "1479/lablgtk-2.18.3.tar.gz")) + (sha256 + (base32 + "1bybn3jafxf4cx25zvn8h2xj9agn1xjbn7j3ywxxqx6az7rfnnwp")))) + (build-system gnu-build-system) + (native-inputs + `(("camlp4" ,camlp4) + ("ocaml" ,ocaml) + ("pkg-config" ,pkg-config))) + (inputs + `(("gtk+" ,gtk+-2))) + (arguments + `(#:parallel-build? #f)) ; just in case + (home-page "http://lablgtk.forge.ocamlcore.org/") + (synopsis "GTK+ bindings for OCaml") + (description + "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides +a strongly-typed object-oriented interface that is compatible with the +dynamic typing of GTK+. Most widgets and methods are available. LablGtk +also provides bindings to +gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas, +gnomeui, gtksourceview, gtkspell, +libglade (and it an generate OCaml code from .glade files), +libpanel, librsvg and quartz.") + (license lgpl2.1)))