2014-09-19 17:08:37 +02: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 21:26:47 +02:00
2014-09-19 21:58:57 +02: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 21:26:47 +02:00
2014-09-19 17:08:37 +02:00
let version = " 2 . 9 . 4 " ;
in stdenv . mkDerivation rec {
name = " r o x t e r m - ${ version } " ;
2014-09-18 21:26:47 +02:00
src = fetchurl {
2016-02-28 13:07:42 +01:00
url = " m i r r o r : / / s o u r c e f o r g e / r o x t e r m / ${ name } . t a r . b z 2 " ;
2014-09-18 21:26:47 +02:00
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 17:08:37 +02:00
buildInputs =
[ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
makeWrapper pkgconfig pythonFull pythonPackages . lockfile ] ;
2014-09-18 21:26:47 +02:00
2014-09-19 17:08:37 +02:00
propagatedBuildInputs =
[ dbus_libs dbus_glib gdk_pixbuf gettext gsettings_desktop_schemas gtk2 gtk3 hicolor_icon_theme vte ] ;
2014-09-18 21:26:47 +02:00
2015-10-05 10:51:22 +02:00
NIX_CFLAGS_COMPILE = [ " - I ${ dbus_glib . dev } / i n c l u d e / d b u s - 1 . 0 "
2015-10-13 14:33:08 +02:00
" - I ${ dbus_libs . dev } / i n c l u d e / d b u s - 1 . 0 "
" - I ${ dbus_libs . lib } / l i b / d b u s - 1 . 0 / i n c l u d e " ] ;
2014-09-18 21:26:47 +02:00
2014-09-19 17:08:37 +02:00
# Fix up python path so the lockfile library is on it.
2016-04-14 17:14:28 +02:00
PYTHONPATH = stdenv . lib . makeSearchPathOutput " l i b " pythonFull . sitePackages [
2014-09-19 17:08:37 +02:00
pythonPackages . curses pythonPackages . lockfile
] ;
buildPhase = ''
# Fix up the LD_LIBRARY_PATH so that expat is on it
2015-10-15 13:57:38 +02:00
export LD_LIBRARY_PATH = " $ L D _ L I B R A R Y _ P A T H : ${ expat . out } / l i b "
2014-09-19 17:08:37 +02:00
python mscript . py configure - - prefix = " $ o u t "
python mscript . py build
'' ;
2014-09-18 21:26:47 +02:00
2014-09-19 17:08:37 +02:00
installPhase = ''
python mscript . py install
2014-09-18 21:26:47 +02:00
2014-09-19 17:08:37 +02:00
wrapProgram " $ o u t / b i n / r o x t e r m " \
2014-09-19 21:58:57 +02: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 17:08:37 +02:00
'' ;
2014-09-18 21:26:47 +02:00
meta = with stdenv . lib ; {
homepage = http://roxterm.sourceforge.net/ ;
2014-09-19 17:08:37 +02: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 15:05:29 +02:00
maintainers = with maintainers ; [ cdepillabout ] ;
2014-09-18 21:26:47 +02:00
platforms = platforms . linux ;
} ;
}