nixpkgs/pkgs/development/ocaml-modules/lablgtk/2.14.0.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

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