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

78 lines
1.8 KiB
Nix
Raw Normal View History

2020-05-01 12:23:15 +01:00
{ stdenv
, fetchFromGitHub
2020-05-01 18:43:01 +01:00
, python3
2020-05-01 12:23:15 +01:00
, keybinder3
, intltool
, file
, gtk3
, gobject-introspection
, libnotify
, wrapGAppsHook
, vte
}:
2020-05-01 18:43:01 +01:00
python3.pkgs.buildPythonApplication rec {
pname = "terminator";
2020-05-01 12:23:15 +01:00
version = "1.92";
2020-05-01 12:23:15 +01:00
src = fetchFromGitHub {
owner = "gnome-terminator";
repo = "terminator";
2020-05-01 18:43:01 +01:00
rev = "v${version}";
2020-05-01 12:23:15 +01:00
sha256 = "105f660wzf9cpn24xzwaaa09igg5h3qhchafv190v5nqck6g1ssh";
};
2020-05-01 12:23:15 +01:00
nativeBuildInputs = [
file
intltool
gobject-introspection
wrapGAppsHook
];
buildInputs = [
gtk3
gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
2020-05-01 12:23:15 +01:00
keybinder3
libnotify
2020-05-01 18:43:01 +01:00
python3
2020-05-01 12:23:15 +01:00
vte
];
2020-05-01 18:43:01 +01:00
propagatedBuildInputs = with python3.pkgs; [
2020-05-01 12:23:15 +01:00
configobj
dbus-python
pygobject3
psutil
pycairo
];
postPatch = ''
2020-05-01 18:43:01 +01:00
patchShebangs run_tests tests po
2020-05-01 12:23:15 +01: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'," ""
'';
checkPhase = ''
2020-05-01 18:43:01 +01:00
runHook preCheck
./run_tests
2020-05-01 18:43:01 +01:00
runHook postCheck
'';
meta = with stdenv.lib; {
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 12:23:15 +01:00
homepage = "https://github.com/gnome-terminator/terminator";
license = licenses.gpl2;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.linux;
};
}