From 7a05d7ca3843b22ce5f64eab19a7a1969812ad1f Mon Sep 17 00:00:00 2001 From: Alexander Tsamutali Date: Sat, 20 Feb 2010 19:24:52 +0000 Subject: [PATCH] desktops/gnome-2.28/desktop/vte: New nixpkg. svn path=/nixpkgs/trunk/; revision=20142 --- pkgs/desktops/gnome-2.28/default.nix | 6 +++- .../gnome-2.28/desktop/vte/default.nix | 29 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 pkgs/desktops/gnome-2.28/desktop/vte/default.nix diff --git a/pkgs/desktops/gnome-2.28/default.nix b/pkgs/desktops/gnome-2.28/default.nix index fb6b03274327..60700a5d7732 100644 --- a/pkgs/desktops/gnome-2.28/default.nix +++ b/pkgs/desktops/gnome-2.28/default.nix @@ -11,7 +11,6 @@ rec { gnomeicontheme = gnome_icon_theme; # !!! Missing! Need to add these. - vte = throw "vte not implemented"; libgnomeprintui = throw "libgnomeprintui not implemented"; gtksourceview_24 = gtksourceview; @@ -305,6 +304,11 @@ rec { gnome_icon_theme = import ./desktop/gnome-icon-theme { inherit (pkgs) stdenv fetchurl pkgconfig intltool iconnamingutils; }; + + vte = import ./desktop/vte { + inherit (pkgs) stdenv fetchurl pkgconfig ncurses python; + inherit intltool glib gtk; + }; #### BINDINGS diff --git a/pkgs/desktops/gnome-2.28/desktop/vte/default.nix b/pkgs/desktops/gnome-2.28/desktop/vte/default.nix new file mode 100644 index 000000000000..0dc4161ba5a2 --- /dev/null +++ b/pkgs/desktops/gnome-2.28/desktop/vte/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, intltool, pkgconfig, glib, gtk, ncurses, + pythonSupport ? false, python}: +stdenv.mkDerivation rec { + name = "vte-0.22.5"; + src = fetchurl { + url = "mirror://gnome/desktop/2.28/2.28.2/sources/${name}.tar.bz2"; + sha256 = "1xmjlz79z3apxmq18d5qyliaky6xb1n2nxwvpzrdl4ky6hk73660"; + }; + buildInputs = [ intltool pkgconfig glib gtk ncurses ] ++ + stdenv.lib.optional pythonSupport python; + configureFlags = '' + ${if pythonSupport then "--enable-python" else "--disable-python"} + ''; + 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. + ''; + license = "LGPLv2"; + maintainers = with stdenv.lib.maintainers; [ astsmtl ]; + platforms = with stdenv.lib.platforms; linux; + }; +}