2019-03-03 22:30:31 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, intltool, pkgconfig, glib, gtk2, ncurses
|
2016-09-25 23:19:26 +02:00
|
|
|
, pythonSupport ? false, python27Packages}:
|
2010-08-08 16:27:43 +02:00
|
|
|
|
2016-09-25 23:19:26 +02:00
|
|
|
let
|
|
|
|
inherit (python27Packages) python pygtk;
|
|
|
|
in stdenv.mkDerivation rec {
|
2013-08-22 21:50:19 +02:00
|
|
|
name = "vte-0.28.2";
|
|
|
|
|
2010-02-20 20:24:52 +01:00
|
|
|
src = fetchurl {
|
2013-07-14 04:23:06 +02:00
|
|
|
url = "mirror://gnome/sources/vte/0.28/${name}.tar.bz2";
|
2013-08-22 21:50:19 +02:00
|
|
|
sha256 = "00zrip28issgmz2cqk5k824cbqpbixi5x7k88zxksdqpnq1f414d";
|
2010-02-20 20:24:52 +01:00
|
|
|
};
|
2010-08-08 16:27:43 +02:00
|
|
|
|
2014-02-05 20:24:37 +01:00
|
|
|
patches = [
|
|
|
|
./alt.patch
|
2015-09-07 04:37:53 +02:00
|
|
|
./change-scroll-region.patch
|
2014-06-30 16:10:50 +02:00
|
|
|
# CVE-2012-2738
|
2017-12-09 12:22:51 +01:00
|
|
|
# fixed in upstream version 0.32.2
|
|
|
|
(fetchpatch{
|
|
|
|
name = "CVE-2012-2738-1.patch";
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/vte/commit/feeee4b5832b17641e505b7083e0d299fdae318e.patch";
|
2017-12-09 12:22:51 +01:00
|
|
|
sha256 = "1455i6zxcx4rj2cz639s8qdc04z2nshprwl7k00mcsw49gv3hk5n";
|
|
|
|
})
|
|
|
|
(fetchpatch{
|
|
|
|
name = "CVE-2012-2738-2.patch";
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/vte/commit/98ce2f265f986fb88c38d508286bb5e3716b9e74.patch";
|
2017-12-09 12:22:51 +01:00
|
|
|
sha256 = "0n24vw49h89w085ggq23iwlnnb6ajllfh2dg4vsar21d82jxc0sn";
|
|
|
|
})
|
2014-02-05 20:24:37 +01:00
|
|
|
];
|
2013-08-22 21:50:19 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-03-03 22:30:31 +01:00
|
|
|
buildInputs = [ intltool glib gtk2 ncurses ] ++
|
2012-05-21 16:58:16 +02:00
|
|
|
stdenv.lib.optionals pythonSupport [python pygtk];
|
2013-08-22 21:50:19 +02:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [
|
|
|
|
(stdenv.lib.enableFeature pythonSupport "python")
|
|
|
|
];
|
2012-05-21 16:58:16 +02: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 20:24:52 +01:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.gnome.org/";
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "A library implementing a terminal emulator widget for GTK";
|
2010-02-20 20:24:52 +01:00
|
|
|
longDescription = ''
|
|
|
|
VTE is a library (libvte) implementing a terminal emulator widget for
|
2019-09-04 00:49:40 +02:00
|
|
|
GTK, and a minimal sample application (vte) using that. Vte is
|
2010-02-20 20:24:52 +01:00
|
|
|
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 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2010-02-20 20:24:52 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|