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