about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-05-02 09:39:00 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2020-05-02 09:39:00 +0200
commitafb1041148b930750c769e1034804effaef2b823 (patch)
tree2b474956a7c41fb38f3f6ee2822ac843a1f8e8d4 /pkgs/applications/misc
parent00bbfccecf90f21b873d90bfeb3b81d7de79cf80 (diff)
parent309711c4b4b665f47876f2a113d3872237467784 (diff)
downloadnixlib-afb1041148b930750c769e1034804effaef2b823.tar
nixlib-afb1041148b930750c769e1034804effaef2b823.tar.gz
nixlib-afb1041148b930750c769e1034804effaef2b823.tar.bz2
nixlib-afb1041148b930750c769e1034804effaef2b823.tar.lz
nixlib-afb1041148b930750c769e1034804effaef2b823.tar.xz
nixlib-afb1041148b930750c769e1034804effaef2b823.tar.zst
nixlib-afb1041148b930750c769e1034804effaef2b823.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/terminator/default.nix62
1 files changed, 49 insertions, 13 deletions
diff --git a/pkgs/applications/misc/terminator/default.nix b/pkgs/applications/misc/terminator/default.nix
index ea73d5cbb68a..5de8109e3a4d 100644
--- a/pkgs/applications/misc/terminator/default.nix
+++ b/pkgs/applications/misc/terminator/default.nix
@@ -1,28 +1,64 @@
-{ stdenv, fetchurl, python2, keybinder3, intltool, file, gtk3, gobject-introspection
-, libnotify, wrapGAppsHook, vte
+{ stdenv
+, fetchFromGitHub
+, python3
+, keybinder3
+, intltool
+, file
+, gtk3
+, gobject-introspection
+, libnotify
+, wrapGAppsHook
+, vte
 }:
 
-python2.pkgs.buildPythonApplication rec {
-  name = "terminator-${version}";
-  version = "1.91";
+python3.pkgs.buildPythonApplication rec {
+  pname = "terminator";
+  version = "1.92";
 
-  src = fetchurl {
-    url = "https://launchpad.net/terminator/gtk3/${version}/+download/${name}.tar.gz";
-    sha256 = "95f76e3c0253956d19ceab2f8da709a496f1b9cf9b1c5b8d3cd0b6da3cc7be69";
+  src = fetchFromGitHub {
+    owner = "gnome-terminator";
+    repo = "terminator";
+    rev = "v${version}";
+    sha256 = "105f660wzf9cpn24xzwaaa09igg5h3qhchafv190v5nqck6g1ssh";
   };
 
-  nativeBuildInputs = [ file intltool wrapGAppsHook gobject-introspection ];
-  buildInputs = [ gtk3 vte libnotify keybinder3
+  nativeBuildInputs = [
+    file
+    intltool
+    gobject-introspection
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    gtk3
     gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
+    keybinder3
+    libnotify
+    python3
+    vte
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    configobj
+    dbus-python
+    pygobject3
+    psutil
+    pycairo
   ];
-  propagatedBuildInputs = with python2.pkgs; [ pygobject3 psutil pycairo ];
 
   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; {
@@ -33,7 +69,7 @@ python2.pkgs.buildPythonApplication rec {
       quadkonsole, etc. in that the main focus is arranging terminals in grids
       (tabs is the most common default method, which Terminator also supports).
     '';
-    homepage = "https://gnometerminator.blogspot.no/p/introduction.html";
+    homepage = "https://github.com/gnome-terminator/terminator";
     license = licenses.gpl2;
     maintainers = with maintainers; [ bjornfor ];
     platforms = platforms.linux;