mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
87 lines
2.1 KiB
Nix
87 lines
2.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
, keybinder3
|
|
, intltool
|
|
, file
|
|
, gtk3
|
|
, gobject-introspection
|
|
, libnotify
|
|
, makeBinaryWrapper
|
|
, wrapGAppsHook3
|
|
, vte
|
|
, nixosTests
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "terminator";
|
|
version = "2.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gnome-terminator";
|
|
repo = "terminator";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0468d/sAM/UOiaSspwWaOGogoE8/Idth0G4CMCXWFFo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
file
|
|
intltool
|
|
gobject-introspection
|
|
makeBinaryWrapper
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
keybinder3
|
|
libnotify
|
|
python3
|
|
vte
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
configobj
|
|
dbus-python
|
|
pygobject3
|
|
psutil
|
|
pycairo
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs tests po
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
dontWrapGApps = true;
|
|
|
|
# HACK: 'wrapPythonPrograms' will add things to the $PATH in the wrapper. This bleeds into the
|
|
# terminal session produced by terminator. To avoid this, we force wrapPythonPrograms to only
|
|
# use gappsWrapperArgs by redefining wrapProgram to ignore its arguments and only apply the
|
|
# wrapper arguments we want it to use.
|
|
# TODO: Adjust wrapPythonPrograms to respect an argument that tells it to leave $PATH alone.
|
|
preFixup = ''
|
|
wrapProgram() {
|
|
wrapProgramBinary "$1" "''${gappsWrapperArgs[@]}"
|
|
}
|
|
'';
|
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.terminator;
|
|
|
|
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).
|
|
'';
|
|
changelog = "https://github.com/gnome-terminator/terminator/releases/tag/v${version}";
|
|
homepage = "https://github.com/gnome-terminator/terminator";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|