3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/terminal-emulators/terminator/default.nix

73 lines
1.7 KiB
Nix
Raw Normal View History

{ lib
2020-05-01 12:23:15 +01:00
, 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-10-14 06:37:45 +01:00
version = "2.1.0";
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-10-14 06:37:45 +01:00
sha256 = "sha256-Rd5XieB7K2BkSzrAr6Kmoa30xuwvsGKpPrsG2wrU1o8=";
};
2020-05-01 12:23:15 +01:00
nativeBuildInputs = [
file
intltool
gobject-introspection
wrapGAppsHook
2020-10-14 06:37:45 +01:00
python3.pkgs.pytestrunner
2020-05-01 12:23:15 +01:00
];
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-10-14 06:37:45 +01:00
patchShebangs 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'," ""
'';
2020-10-14 06:37:45 +01: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 12:23:15 +01:00
homepage = "https://github.com/gnome-terminator/terminator";
license = licenses.gpl2;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.linux;
};
}