2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-05-01 11:23:15 +00:00
|
|
|
, fetchFromGitHub
|
2020-05-01 17:43:01 +00:00
|
|
|
, python3
|
2020-05-01 11:23:15 +00:00
|
|
|
, keybinder3
|
|
|
|
, intltool
|
|
|
|
, file
|
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, libnotify
|
|
|
|
, wrapGAppsHook
|
|
|
|
, vte
|
2016-09-06 11:37:39 +00:00
|
|
|
}:
|
2012-05-21 15:08:16 +00:00
|
|
|
|
2020-05-01 17:43:01 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "terminator";
|
2020-05-01 11:23:15 +00:00
|
|
|
version = "1.92";
|
2016-09-06 11:37:39 +00:00
|
|
|
|
2020-05-01 11:23:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnome-terminator";
|
|
|
|
repo = "terminator";
|
2020-05-01 17:43:01 +00:00
|
|
|
rev = "v${version}";
|
2020-05-01 11:23:15 +00:00
|
|
|
sha256 = "105f660wzf9cpn24xzwaaa09igg5h3qhchafv190v5nqck6g1ssh";
|
2012-05-21 15:08:16 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 11:23:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
file
|
|
|
|
intltool
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2019-03-27 16:50:22 +00:00
|
|
|
gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
|
2020-05-01 11:23:15 +00:00
|
|
|
keybinder3
|
|
|
|
libnotify
|
2020-05-01 17:43:01 +00:00
|
|
|
python3
|
2020-05-01 11:23:15 +00:00
|
|
|
vte
|
|
|
|
];
|
|
|
|
|
2020-05-01 17:43:01 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-05-01 11:23:15 +00:00
|
|
|
configobj
|
|
|
|
dbus-python
|
|
|
|
pygobject3
|
|
|
|
psutil
|
|
|
|
pycairo
|
2019-03-27 16:50:22 +00:00
|
|
|
];
|
2016-09-06 11:37:39 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2020-05-01 17:43:01 +00:00
|
|
|
patchShebangs run_tests tests po
|
2020-05-01 11:23:15 +00:00
|
|
|
# dbus-python is correctly passed in propagatedBuildInputs, but for some reason setup.py complains.
|
|
|
|
# The wrapped terminator has the correct path added, so ignore this.
|
|
|
|
substituteInPlace setup.py --replace "'dbus-python'," ""
|
2016-09-06 11:37:39 +00:00
|
|
|
'';
|
2014-02-16 17:26:06 +00:00
|
|
|
|
2016-09-06 11:37:39 +00:00
|
|
|
checkPhase = ''
|
2020-05-01 17:43:01 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
2016-09-06 11:37:39 +00:00
|
|
|
./run_tests
|
2020-05-01 17:43:01 +00:00
|
|
|
|
|
|
|
runHook postCheck
|
2016-09-06 11:37:39 +00:00
|
|
|
'';
|
2012-05-21 15:08:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-02-16 17:26:06 +00:00
|
|
|
description = "Terminal emulator with support for tiling and tabs";
|
|
|
|
longDescription = ''
|
|
|
|
The goal of this project is to produce a useful tool for arranging
|
|
|
|
terminals. It is inspired by programs such as gnome-multi-term,
|
|
|
|
quadkonsole, etc. in that the main focus is arranging terminals in grids
|
|
|
|
(tabs is the most common default method, which Terminator also supports).
|
|
|
|
'';
|
2020-05-01 11:23:15 +00:00
|
|
|
homepage = "https://github.com/gnome-terminator/terminator";
|
2014-02-16 17:26:06 +00:00
|
|
|
license = licenses.gpl2;
|
2019-08-20 17:36:05 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2014-02-16 17:26:06 +00:00
|
|
|
platforms = platforms.linux;
|
2012-05-21 15:08:16 +00:00
|
|
|
};
|
|
|
|
}
|