2014-09-19 15:08:37 +00:00
{ stdenv , fetchurl , docbook_xsl , dbus_libs , dbus_glib , expat , gettext
, gsettings_desktop_schemas , gdk_pixbuf , gtk2 , gtk3 , hicolor_icon_theme
, imagemagick , itstool , librsvg , libtool , libxslt , lockfile , makeWrapper
, pkgconfig , pythonFull , pythonPackages , vte } :
2014-09-18 19:26:47 +00:00
2014-09-19 19:58:57 +00:00
# TODO: Still getting following warning.
# WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
# Seems related to this:
# https://forums.gentoo.org/viewtopic-t-947210-start-0.html
2014-09-18 19:26:47 +00:00
2014-09-19 15:08:37 +00:00
let version = " 2 . 9 . 4 " ;
in stdenv . mkDerivation rec {
name = " r o x t e r m - ${ version } " ;
2014-09-18 19:26:47 +00:00
src = fetchurl {
url = " h t t p : / / d o w n l o a d s . s o u r c e f o r g e . n e t / r o x t e r m / ${ name } . t a r . b z 2 " ;
sha256 = " 0 d j f i w f m n q q p 6 9 3 0 k s w z r 2 r s s 0 m h 4 0 v g l c d y b w p x r i j c w 4 n 8 j 2 1 x " ;
} ;
2014-09-19 15:08:37 +00:00
buildInputs =
[ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
makeWrapper pkgconfig pythonFull pythonPackages . lockfile ] ;
2014-09-18 19:26:47 +00:00
2014-09-19 15:08:37 +00:00
propagatedBuildInputs =
[ dbus_libs dbus_glib gdk_pixbuf gettext gsettings_desktop_schemas gtk2 gtk3 hicolor_icon_theme vte ] ;
2014-09-18 19:26:47 +00:00
NIX_CFLAGS_COMPILE = [ " - I ${ dbus_glib } / i n c l u d e / d b u s - 1 . 0 "
" - I ${ dbus_libs } / i n c l u d e / d b u s - 1 . 0 "
" - I ${ dbus_libs } / l i b / d b u s - 1 . 0 / i n c l u d e " ] ;
2014-09-19 15:08:37 +00:00
# Fix up python path so the lockfile library is on it.
2014-10-12 12:59:31 +00:00
PYTHONPATH = stdenv . lib . makeSearchPath " l i b / ${ pythonFull . libPrefix } / s i t e - p a c k a g e s " [
2014-09-19 15:08:37 +00:00
pythonPackages . curses pythonPackages . lockfile
] ;
buildPhase = ''
# Fix up the LD_LIBRARY_PATH so that expat is on it
export LD_LIBRARY_PATH = " $ L D _ L I B R A R Y _ P A T H : ${ expat } / l i b "
python mscript . py configure - - prefix = " $ o u t "
python mscript . py build
'' ;
2014-09-18 19:26:47 +00:00
2014-09-19 15:08:37 +00:00
installPhase = ''
python mscript . py install
2014-09-18 19:26:47 +00:00
2014-09-19 15:08:37 +00:00
wrapProgram " $ o u t / b i n / r o x t e r m " \
2014-09-19 19:58:57 +00:00
- - prefix XDG_DATA_DIRS : " $ G S E T T I N G S _ S C H E M A S _ P A T H " \
- - set GDK_PIXBUF_MODULE_FILE " $ G D K _ P I X B U F _ M O D U L E _ F I L E "
2014-09-19 15:08:37 +00:00
'' ;
2014-09-18 19:26:47 +00:00
meta = with stdenv . lib ; {
homepage = http://roxterm.sourceforge.net/ ;
2014-09-19 15:08:37 +00:00
license = licenses . gpl3 ;
description = " T a b b e d , V T E - b a s e d t e r m i n a l e m u l a t o r " ;
longDescription = ''
Tabbed , VTE-based terminal emulator . Similar to gnome-terminal without the dependencies on Gnome .
'' ;
2014-09-21 13:05:29 +00:00
maintainers = with maintainers ; [ cdepillabout ] ;
2014-09-18 19:26:47 +00:00
platforms = platforms . linux ;
} ;
}