nixpkgs/pkgs/applications/terminal-emulators/terminator/default.nix

73 lines
1.7 KiB
Nix
Raw Normal View History

{ 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
}:
2020-05-01 17:43:01 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "terminator";
2021-05-13 15:36:48 +00:00
version = "2.1.1";
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}";
2021-05-13 15:36:48 +00:00
sha256 = "1pfrzna30xv9yri6dsny1j5k35417m4hsg97c455vssywyl9w4jr";
};
2020-05-01 11:23:15 +00:00
nativeBuildInputs = [
file
intltool
gobject-introspection
wrapGAppsHook
python3.pkgs.pytest-runner
2020-05-01 11:23:15 +00:00
];
buildInputs = [
gtk3
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
];
postPatch = ''
2020-10-14 05:37:45 +00:00
patchShebangs 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'," ""
'';
2020-10-14 05:37:45 +00:00
doCheck = false;
meta = with 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 11:23:15 +00:00
homepage = "https://github.com/gnome-terminator/terminator";
license = licenses.gpl2;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.linux;
};
}