From d8378602a9902a463b2f4d9740882a63f357f80b Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Mon, 7 Jan 2019 17:09:21 +0100 Subject: [PATCH] qtile: 0.12.0 -> 0.13.0 needs Python 3 to use Clock widget: https://github.com/qtile/qtile/issues/1258#issuecomment-451958978 --- .../applications/window-managers/qtile/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/window-managers/qtile/default.nix b/pkgs/applications/window-managers/qtile/default.nix index be51a5c46bf3..dc78702b03c5 100644 --- a/pkgs/applications/window-managers/qtile/default.nix +++ b/pkgs/applications/window-managers/qtile/default.nix @@ -1,19 +1,19 @@ -{ stdenv, fetchFromGitHub, python27Packages, glib, cairo, pango, pkgconfig, libxcb, xcbutilcursor }: +{ stdenv, fetchFromGitHub, python37Packages, glib, cairo, pango, pkgconfig, libxcb, xcbutilcursor }: -let cairocffi-xcffib = python27Packages.cairocffi.override { +let cairocffi-xcffib = python37Packages.cairocffi.override { withXcffib = true; }; in -python27Packages.buildPythonApplication rec { +python37Packages.buildPythonApplication rec { name = "qtile-${version}"; - version = "0.12.0"; + version = "0.13.0"; src = fetchFromGitHub { owner = "qtile"; repo = "qtile"; rev = "v${version}"; - sha256 = "0ynmmnh12mr3gwgz0j7l2hvm8c0y5gzsw80jszdkp4s5bh1q0nrj"; + sha256 = "1lyclnn8hs6wl4w9v5b4hh2q0pvmsn7cyibpskhbpw0cgv7bvi90"; }; patches = [ @@ -30,9 +30,9 @@ python27Packages.buildPythonApplication rec { ''; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ glib libxcb cairo pango python27Packages.xcffib ]; + buildInputs = [ glib libxcb cairo pango python37Packages.xcffib ]; - pythonPath = with python27Packages; [ xcffib cairocffi-xcffib trollius ]; + pythonPath = with python37Packages; [ xcffib cairocffi-xcffib ]; postInstall = '' wrapProgram $out/bin/qtile \