2017-04-02 19:25:46 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
2016-08-21 17:23:58 +01:00
|
|
|
, pkgconfig, cmake, libxml2, vala_0_23, intltool, libmx, gnome3, gtk3, gtk_doc
|
2014-04-26 21:56:58 +01:00
|
|
|
, keybinder3, clutter_gtk, libnotify
|
2015-09-15 10:26:18 +01:00
|
|
|
, libxkbcommon, xorg, udev
|
2014-04-26 21:56:58 +01:00
|
|
|
, bashInteractive
|
|
|
|
}:
|
|
|
|
|
2017-04-02 19:25:46 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-02-23 17:21:19 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "finalterm-git-2014-11-15";
|
2014-04-26 21:56:58 +01:00
|
|
|
|
2017-04-02 19:25:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p-e-w";
|
|
|
|
repo = "finalterm";
|
2015-02-23 17:21:19 +00:00
|
|
|
rev = "39b078b2a96a5c3c9e74f92b1929f383d220ca8b";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "14viln5nabr39lafg1lzf6ydibz1h5d9346drp435ljxc6wsh21i";
|
2014-04-26 21:56:58 +01:00
|
|
|
};
|
|
|
|
|
2017-04-02 19:25:46 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake intltool makeWrapper ];
|
2014-04-26 21:56:58 +01:00
|
|
|
buildInputs = [
|
2017-04-02 19:25:46 +01:00
|
|
|
vala_0_23 gtk3 gnome3.gnome_common gnome3.libgee
|
|
|
|
gtk_doc clutter_gtk libmx keybinder3 libxml2 libnotify
|
2015-09-15 10:26:18 +01:00
|
|
|
xorg.libpthreadstubs xorg.libXdmcp xorg.libxshmfence
|
2014-04-26 21:56:58 +01:00
|
|
|
libxkbcommon
|
2017-04-02 19:25:46 +01:00
|
|
|
] ++ optionals stdenv.isLinux [ udev ];
|
2014-04-26 21:56:58 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace data/org.gnome.finalterm.gschema.xml \
|
|
|
|
--replace "/bin/bash" "${bashInteractive}/bin/bash"
|
|
|
|
|
|
|
|
cmakeFlagsArray=(
|
|
|
|
-DMINIMAL_FLAGS=ON
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2015-03-01 11:51:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/gsettings-schemas/$name
|
|
|
|
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
|
|
|
|
'';
|
|
|
|
|
2014-04-26 21:56:58 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/finalterm" \
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
2017-07-24 05:24:11 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${getLib gnome3.dconf}/lib/gio/modules" \
|
2016-08-23 02:34:36 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${gnome3.defaultIconTheme}/share:${gnome3.gtk.out}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"
|
2014-04-26 21:56:58 +01:00
|
|
|
'';
|
|
|
|
|
2017-04-02 19:25:46 +01:00
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://finalterm.org;
|
2014-04-26 21:56:58 +01:00
|
|
|
description = "A new breed of terminal emulator";
|
|
|
|
longDescription = ''
|
|
|
|
Final Term is a new breed of terminal emulator.
|
|
|
|
|
|
|
|
It goes beyond mere emulation and understands what is happening inside the shell it is hosting. This allows it to offer features no other terminal can, including:
|
|
|
|
|
|
|
|
- Semantic text menus
|
|
|
|
- Smart command completion
|
|
|
|
- GUI terminal controls
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
2017-04-02 19:25:46 +01:00
|
|
|
maintainers = [ maintainers.cstrahan ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2014-04-26 21:56:58 +01:00
|
|
|
};
|
|
|
|
}
|