nixpkgs/pkgs/applications/misc/roxterm/default.nix

62 lines
2.1 KiB
Nix
Raw Normal View History

{ 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-11-19 18:57:02 +01:00
, pkgconfig, python, pythonPackages, vte
, wrapGAppsHook}:
2014-09-18 21:26:47 +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
2016-11-19 18:57:02 +01:00
let version = "3.3.2";
in stdenv.mkDerivation rec {
name = "roxterm-${version}";
2014-09-18 21:26:47 +02:00
src = fetchurl {
2016-11-19 18:57:02 +01:00
url = "mirror://sourceforge/roxterm/${name}.tar.xz";
sha256 = "0vjh7k4jm4bd01j88w9bmvq27zqsajjzy131fpi81zkii5lisl1k";
2014-09-18 21:26:47 +02:00
};
2016-11-19 18:57:02 +01:00
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
buildInputs =
[ docbook_xsl expat imagemagick itstool librsvg libtool libxslt
2016-11-19 18:57:02 +01:00
makeWrapper python pythonPackages.lockfile dbus_libs dbus_glib
gdk_pixbuf gsettings_desktop_schemas gtk3
hicolor_icon_theme vte ];
2014-09-18 21:26:47 +02:00
NIX_CFLAGS_COMPILE = [ "-I${dbus_glib.dev}/include/dbus-1.0"
"-I${dbus_libs.dev}/include/dbus-1.0"
"-I${dbus_libs.lib}/lib/dbus-1.0/include" ];
2014-09-18 21:26:47 +02:00
# Fix up python path so the lockfile library is on it.
2016-10-06 20:34:35 +02:00
PYTHONPATH = stdenv.lib.makeSearchPathOutput "lib" python.sitePackages [
2016-10-14 00:03:12 +02:00
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="$LD_LIBRARY_PATH:${expat.out}/lib"
2016-11-19 18:57:02 +01:00
python mscript.py configure --prefix="$out" --disable-nls --disable-translations
python mscript.py build
'';
2014-09-18 21:26:47 +02:00
installPhase = ''
python mscript.py install
'';
2014-09-18 21:26:47 +02:00
meta = with stdenv.lib; {
homepage = http://roxterm.sourceforge.net/;
license = licenses.gpl3;
description = "Tabbed, VTE-based terminal emulator";
longDescription = ''
2016-11-19 18:57:02 +01:00
Tabbed, VTE-based terminal emulator. Similar to gnome-terminal without
the dependencies on Gnome.
'';
maintainers = with maintainers; [ cdepillabout ];
2014-09-18 21:26:47 +02:00
platforms = platforms.linux;
};
}