1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/lablgtk3/default.nix
2018-12-14 09:11:25 +00:00

28 lines
865 B
Nix

{ stdenv, fetchurl, pkgconfig, ocaml, findlib, gtk3, gtkspell3, gtksourceview }:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "lablgtk3 is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
version = "3.0.beta2";
name = "ocaml${ocaml.version}-lablgtk3-${version}";
src = fetchurl {
url = https://forge.ocamlcore.org/frs/download.php/1774/lablgtk-3.0.beta2.tar.gz;
sha256 = "1v4qj07l75hqis4j9bx8x1cfn7scqi6nmp4j5jx41x94ws7hp2ch";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ocaml findlib gtk3 gtkspell3 gtksourceview ];
buildFlags = "world";
meta = {
description = "OCaml interface to gtk+-3";
homepage = "http://lablgtk.forge.ocamlcore.org/";
license = stdenv.lib.licenses.lgpl21;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}