2018-07-21 01:44:44 +01:00
{ stdenv , fetchurl , docbook_xsl , dbus , dbus-glib , expat
2019-05-22 12:03:39 +01:00
, gsettings-desktop-schemas , gdk-pixbuf , gtk3 , hicolor-icon-theme
2018-07-21 01:44:44 +01:00
, imagemagick , itstool , librsvg , libtool , libxslt , makeWrapper
2016-11-19 17:57:02 +00:00
, pkgconfig , python , pythonPackages , vte
, wrapGAppsHook } :
2014-09-18 20:26:47 +01:00
2014-09-19 20:58:57 +01: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 20:26:47 +01:00
2016-11-19 17:57:02 +00:00
let version = " 3 . 3 . 2 " ;
2014-09-19 16:08:37 +01:00
in stdenv . mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = " r o x t e r m " ;
inherit version ;
2014-09-18 20:26:47 +01:00
src = fetchurl {
2019-08-13 22:52:01 +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 / ${ pname } - ${ version } . t a r . x z " ;
2016-11-19 17:57:02 +00:00
sha256 = " 0 v j h 7 k 4 j m 4 b d 0 1 j 8 8 w 9 b m v q 2 7 z q s a j j z y 1 3 1 f p i 8 1 z k i i 5 l i s l 1 k " ;
2014-09-18 20:26:47 +01:00
} ;
2016-11-19 17:57:02 +00:00
nativeBuildInputs = [ pkgconfig wrapGAppsHook ] ;
2014-09-19 16:08:37 +01:00
buildInputs =
[ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
2018-07-17 21:11:16 +01:00
makeWrapper python pythonPackages . lockfile dbus dbus-glib
2019-05-22 12:03:39 +01:00
gdk-pixbuf gsettings-desktop-schemas gtk3
2018-02-25 02:23:58 +00:00
hicolor-icon-theme vte ] ;
2014-09-18 20:26:47 +01:00
2018-02-25 02:23:58 +00:00
NIX_CFLAGS_COMPILE = [ " - I ${ dbus-glib . dev } / i n c l u d e / d b u s - 1 . 0 "
2018-07-17 21:11:16 +01:00
" - I ${ dbus . dev } / i n c l u d e / d b u s - 1 . 0 "
" - I ${ dbus . lib } / l i b / d b u s - 1 . 0 / i n c l u d e " ] ;
2014-09-18 20:26:47 +01:00
2014-09-19 16:08:37 +01:00
# Fix up python path so the lockfile library is on it.
2016-10-06 19:34:35 +01:00
PYTHONPATH = stdenv . lib . makeSearchPathOutput " l i b " python . sitePackages [
2016-10-13 23:03:12 +01:00
pythonPackages . lockfile
2014-09-19 16:08:37 +01:00
] ;
buildPhase = ''
# Fix up the LD_LIBRARY_PATH so that expat is on it
2015-10-15 12:57:38 +01: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 16:08:37 +01:00
2016-11-19 17:57:02 +00:00
python mscript . py configure - - prefix = " $ o u t " - - disable-nls - - disable-translations
2014-09-19 16:08:37 +01:00
python mscript . py build
'' ;
2014-09-18 20:26:47 +01:00
2014-09-19 16:08:37 +01:00
installPhase = ''
python mscript . py install
'' ;
2014-09-18 20:26:47 +01:00
meta = with stdenv . lib ; {
homepage = http://roxterm.sourceforge.net/ ;
2014-09-19 16:08:37 +01: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 = ''
2016-11-19 17:57:02 +00:00
Tabbed , VTE-based terminal emulator . Similar to gnome-terminal without
the dependencies on Gnome .
2014-09-19 16:08:37 +01:00
'' ;
2014-09-21 14:05:29 +01:00
maintainers = with maintainers ; [ cdepillabout ] ;
2014-09-18 20:26:47 +01:00
platforms = platforms . linux ;
} ;
}