2010-08-08 15:27:43 +01:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, glib, gtk, ncurses
|
2012-05-21 15:58:16 +01:00
|
|
|
, pythonSupport ? false, python, pygtk}:
|
2010-08-08 15:27:43 +01:00
|
|
|
|
2010-02-20 19:24:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-08-22 20:50:19 +01:00
|
|
|
name = "vte-0.28.2";
|
|
|
|
|
2010-02-20 19:24:52 +00:00
|
|
|
src = fetchurl {
|
2013-07-14 03:23:06 +01:00
|
|
|
url = "mirror://gnome/sources/vte/0.28/${name}.tar.bz2";
|
2013-08-22 20:50:19 +01:00
|
|
|
sha256 = "00zrip28issgmz2cqk5k824cbqpbixi5x7k88zxksdqpnq1f414d";
|
2010-02-20 19:24:52 +00:00
|
|
|
};
|
2010-08-08 15:27:43 +01:00
|
|
|
|
2014-02-05 19:24:37 +00:00
|
|
|
patches = [
|
|
|
|
./alt.patch
|
2014-06-30 15:10:50 +01:00
|
|
|
# CVE-2012-2738
|
|
|
|
./vte-0.28.2-limit-arguments.patch
|
2014-02-05 19:24:37 +00:00
|
|
|
];
|
2013-08-22 20:50:19 +01:00
|
|
|
|
2010-02-20 19:24:52 +00:00
|
|
|
buildInputs = [ intltool pkgconfig glib gtk ncurses ] ++
|
2012-05-21 15:58:16 +01:00
|
|
|
stdenv.lib.optionals pythonSupport [python pygtk];
|
2013-08-22 20:50:19 +01:00
|
|
|
|
2010-02-20 19:24:52 +00:00
|
|
|
configureFlags = ''
|
|
|
|
${if pythonSupport then "--enable-python" else "--disable-python"}
|
|
|
|
'';
|
2012-05-21 15:58:16 +01:00
|
|
|
|
|
|
|
postInstall = stdenv.lib.optionalString pythonSupport ''
|
|
|
|
cd $(toPythonPath $out)/gtk-2.0
|
|
|
|
for n in *; do
|
|
|
|
ln -s "gtk-2.0/$n" "../$n"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2010-02-20 19:24:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnome.org/;
|
|
|
|
description = "A library implementing a terminal emulator widget for GTK+";
|
|
|
|
longDescription = ''
|
|
|
|
VTE is a library (libvte) implementing a terminal emulator widget for
|
|
|
|
GTK+, and a minimal sample application (vte) using that. Vte is
|
|
|
|
mainly used in gnome-terminal, but can also be used to embed a
|
|
|
|
console/terminal in games, editors, IDEs, etc. VTE supports Unicode and
|
|
|
|
character set conversion, as well as emulating any terminal known to
|
|
|
|
the system's terminfo database.
|
|
|
|
'';
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2010-02-20 19:24:52 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|