From 64c09a3d5c130ca346ac3bbc3fd122a3a4372c14 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 1 May 2020 19:43:01 +0200 Subject: [PATCH] terminator: clean up --- pkgs/applications/misc/terminator/default.nix | 18 +++++++++++------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/misc/terminator/default.nix b/pkgs/applications/misc/terminator/default.nix index f59b534a9c6c..5de8109e3a4d 100644 --- a/pkgs/applications/misc/terminator/default.nix +++ b/pkgs/applications/misc/terminator/default.nix @@ -1,6 +1,6 @@ { stdenv , fetchFromGitHub -, python +, python3 , keybinder3 , intltool , file @@ -11,14 +11,14 @@ , vte }: -python.pkgs.buildPythonApplication rec { - name = "terminator-${version}"; +python3.pkgs.buildPythonApplication rec { + pname = "terminator"; version = "1.92"; src = fetchFromGitHub { owner = "gnome-terminator"; repo = "terminator"; - rev = "bb24273eb40dc5eac97de74064488701fa40a743"; + rev = "v${version}"; sha256 = "105f660wzf9cpn24xzwaaa09igg5h3qhchafv190v5nqck6g1ssh"; }; @@ -34,11 +34,11 @@ python.pkgs.buildPythonApplication rec { gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943 keybinder3 libnotify - python + python3 vte ]; - propagatedBuildInputs = with python.pkgs; [ + propagatedBuildInputs = with python3.pkgs; [ configobj dbus-python pygobject3 @@ -47,14 +47,18 @@ python.pkgs.buildPythonApplication rec { ]; postPatch = '' - patchShebangs . + patchShebangs run_tests tests po # 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 = '' + runHook preCheck + ./run_tests + + runHook postCheck ''; meta = with stdenv.lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8263d85a2f2a..37cf58decaba 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22034,7 +22034,7 @@ in terminal-notifier = callPackage ../applications/misc/terminal-notifier {}; - terminator = callPackage ../applications/misc/terminator { python = python3; }; + terminator = callPackage ../applications/misc/terminator { }; terminus = callPackage ../applications/misc/terminus { };