2010-12-31 17:48:55 +00:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk, libgnomecanvas, libglade, gtksourceview}:
|
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
pname = "lablgtk";
|
2013-06-04 19:30:50 +01:00
|
|
|
version = "2.16.0";
|
2010-12-31 17:48:55 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
2013-06-04 19:30:50 +01:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/979/${name}.tar.gz";
|
|
|
|
sha256 = "a0ea9752eb257dadcfc2914408fff339d4c34357802f02c63329dd41b777de2f";
|
2010-12-31 17:48:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml findlib pkgconfig gtk libgnomecanvas libglade gtksourceview];
|
|
|
|
|
|
|
|
configureFlags = "--with-libdir=$(out)/lib/ocaml/${ocaml_version}/site-lib";
|
|
|
|
buildFlags = "world";
|
|
|
|
|
2013-06-04 19:30:50 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib
|
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml_version}/site-lib/:$OCAMLPATH
|
2010-12-31 17:48:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
stdenv.lib.maintainers.roconnor
|
|
|
|
];
|
|
|
|
homepage = http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html;
|
|
|
|
description = "LablGTK is is an Objective Caml interface to gtk+";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2010-12-31 17:48:55 +00:00
|
|
|
};
|
|
|
|
})
|