nixpkgs/pkgs/development/libraries/vte/default.nix
2019-10-15 16:32:38 -04:00

82 lines
1.6 KiB
Nix

{ stdenv
, fetchurl
, gettext
, pkgconfig
, meson
, ninja
, gnome3
, glib
, gtk3
, gobject-introspection
, vala
, libxml2
, gnutls
, gperf
, pango
, pcre2
, fribidi
, zlib
}:
stdenv.mkDerivation rec {
pname = "vte";
version = "0.58.2";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1h1bljr090cgnzim00q4pnsmjqblzn1sig3d87wv1hzjn796dj9k";
};
passthru = {
updateScript = gnome3.updateScript { packageName = pname; };
};
nativeBuildInputs = [
gettext
gobject-introspection
gperf
libxml2
meson
ninja
pkgconfig
vala
];
buildInputs = [
fribidi
gnutls
pcre2
zlib
];
propagatedBuildInputs = [
# Required by vte-2.91.pc.
gtk3
glib
pango
];
postPatch = ''
patchShebangs perf/*
patchShebangs src/box_drawing_generate.sh
'';
meta = with stdenv.lib; {
homepage = https://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.
'';
license = licenses.lgpl2;
maintainers = with maintainers; [ astsmtl antono lethalman ];
platforms = platforms.unix;
};
}