2015-06-24 23:30:10 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk, libgnomecanvas, libglade, gtksourceview, camlp4 }:
|
2014-09-17 23:44:02 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
pname = "lablgtk";
|
|
|
|
version = "2.14.0";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/561/${name}.tar.gz";
|
|
|
|
sha256 = "1fnh0amm7lwgyjdhmlqgsp62gwlar1140425yc1j6inwmgnsp0a9";
|
|
|
|
};
|
|
|
|
|
2015-06-24 23:30:10 +01:00
|
|
|
buildInputs = [ ocaml findlib pkgconfig gtk libgnomecanvas libglade gtksourceview camlp4 ];
|
2014-09-17 23:44:02 +01:00
|
|
|
|
|
|
|
configureFlags = "--with-libdir=$(out)/lib/ocaml/${ocaml_version}/site-lib";
|
|
|
|
buildFlags = "world";
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib
|
|
|
|
export OCAMLPATH=$out/lib/ocaml/${ocaml_version}/site-lib/:$OCAMLPATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-06 19:40:20 +00:00
|
|
|
branch = "2.14";
|
2014-09-17 23:44:02 +01:00
|
|
|
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+";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
})
|