2016-09-11 22:24:51 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk2, libgnomecanvas, libglade, gtksourceview, camlp4}:
|
2010-12-31 17:48:55 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "lablgtk";
|
|
|
|
in
|
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "3.12";
|
2014-09-20 18:53:43 +01:00
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-12-31 17:48:55 +00:00
|
|
|
name = "${pname}-${version}";
|
2016-12-20 22:02:43 +00:00
|
|
|
version = "2.18.5";
|
2016-10-05 08:32:30 +01:00
|
|
|
|
2010-12-31 17:48:55 +00:00
|
|
|
src = fetchurl {
|
2016-12-20 22:02:43 +00:00
|
|
|
url = https://forge.ocamlcore.org/frs/download.php/1627/lablgtk-2.18.5.tar.gz;
|
|
|
|
sha256 = "0cyj6sfdvzx8hw7553lhgwc0krlgvlza0ph3dk9gsxy047dm3wib";
|
2010-12-31 17:48:55 +00:00
|
|
|
};
|
|
|
|
|
2016-09-11 22:24:51 +01:00
|
|
|
buildInputs = [ocaml findlib pkgconfig gtk2 libgnomecanvas libglade gtksourceview camlp4];
|
2010-12-31 17:48:55 +00:00
|
|
|
|
2016-10-05 08:32:30 +01:00
|
|
|
configureFlags = "--with-libdir=$(out)/lib/ocaml/${ocaml.version}/site-lib";
|
2010-12-31 17:48:55 +00:00
|
|
|
buildFlags = "world";
|
|
|
|
|
2013-06-04 19:30:50 +01:00
|
|
|
preInstall = ''
|
2016-10-05 08:32:30 +01:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
2014-10-04 00:49:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-04 00:49:05 +01:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
z77z roconnor vbgl
|
2010-12-31 17:48:55 +00:00
|
|
|
];
|
2014-10-04 00:49:05 +01:00
|
|
|
homepage = http://lablgtk.forge.ocamlcore.org/;
|
|
|
|
description = "An OCaml interface to gtk+";
|
|
|
|
license = licenses.lgpl21Plus;
|
2010-12-31 17:48:55 +00:00
|
|
|
};
|
2014-10-04 00:49:05 +01:00
|
|
|
}
|