nixpkgs-suyu/pkgs/development/ocaml-modules/lablgtk/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk2, libgnomecanvas, libglade, gtksourceview }:
let
pname = "lablgtk";
in
2016-10-05 09:32:30 +02:00
assert stdenv.lib.versionAtLeast ocaml.version "3.12";
2016-10-05 09:32:30 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
2016-12-20 23:02:43 +01:00
version = "2.18.5";
2016-10-05 09:32:30 +02:00
src = fetchurl {
2016-12-20 23:02:43 +01:00
url = https://forge.ocamlcore.org/frs/download.php/1627/lablgtk-2.18.5.tar.gz;
sha256 = "0cyj6sfdvzx8hw7553lhgwc0krlgvlza0ph3dk9gsxy047dm3wib";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ocaml findlib gtk2 libgnomecanvas libglade gtksourceview ];
2016-10-05 09:32:30 +02:00
configureFlags = "--with-libdir=$(out)/lib/ocaml/${ocaml.version}/site-lib";
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
'';
2017-06-26 08:27:03 +02:00
dontStrip = true;
2014-10-04 01:49:05 +02:00
meta = with stdenv.lib; {
platforms = ocaml.meta.platforms or [];
2014-10-04 01:49:05 +02:00
maintainers = with maintainers; [
z77z roconnor vbgl
];
2014-10-04 01:49:05 +02:00
homepage = http://lablgtk.forge.ocamlcore.org/;
description = "An OCaml interface to gtk+";
license = licenses.lgpl21Plus;
};
2014-10-04 01:49:05 +02:00
}