2015-09-15 11:26:18 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gtk, mesa, pango, pangox_compat, xorg }:
|
2010-08-23 16:52:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gtkglext-1.2.0";
|
2009-10-21 00:20:58 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-23 16:52:00 +02:00
|
|
|
url = "mirror://gnome/sources/gtkglext/1.2/${name}.tar.bz2";
|
|
|
|
sha256 = "0lbz96jwz57hnn52b8rfj54inwpwcc9fkdq6ya043cgnfih77g8n";
|
2009-10-21 00:20:58 +02:00
|
|
|
};
|
2010-08-23 16:52:00 +02:00
|
|
|
|
2015-09-15 11:26:18 +02:00
|
|
|
buildInputs = with xorg;
|
2016-01-25 13:53:21 +01:00
|
|
|
[ pkgconfig glib gtk mesa pango libX11 libXmu ];
|
|
|
|
propagatedBuildInputs = [ pangox_compat ];
|
2010-08-23 16:52:00 +02:00
|
|
|
|
|
|
|
# The library uses `GTK_WIDGET_REALIZED', `GTK_WIDGET_TOPLEVEL', and
|
|
|
|
# `GTK_WIDGET_NO_WINDOW', all of which appear to be deprecated nowadays.
|
|
|
|
CPPFLAGS = "-UGTK_DISABLE_DEPRECATED";
|
|
|
|
|
2014-08-23 11:46:43 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://projects.gnome.org/gtkglext/;
|
2010-08-23 16:52:00 +02:00
|
|
|
description = "GtkGLExt, an OpenGL extension to GTK+";
|
|
|
|
longDescription =
|
|
|
|
'' GtkGLExt is an OpenGL extension to GTK+. It provides additional GDK
|
|
|
|
objects which support OpenGL rendering in GTK+ and GtkWidget API
|
|
|
|
add-ons to make GTK+ widgets OpenGL-capable. In contrast to Janne
|
|
|
|
Löf's GtkGLArea, GtkGLExt provides a GtkWidget API that enables
|
|
|
|
OpenGL drawing for standard and custom GTK+ widgets.
|
|
|
|
'';
|
2014-08-23 11:46:43 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2010-08-23 16:52:00 +02:00
|
|
|
};
|
2009-10-21 00:20:58 +02:00
|
|
|
}
|