From 89e211f1fad38e64f63824d9aea99436029efbdb Mon Sep 17 00:00:00 2001 From: Nate Faber Date: Sun, 4 Oct 2020 10:46:12 +0200 Subject: [PATCH] Add more python package dependencies for qtile Qtile cannot connect to dbus and cause applications to freeze when they attempt to send notifications. For example, slack will completely freeze when a new message comes in after it attempts to send a notification. This is caused by an inability to import dbus and pygobject3 as evidenced by this error in the logs `WARNING libqtile manager.py:setup_eventloop():L240 importing dbus/gobject failed, dbus will not work.` Also added the python packages dependencies mentioned here: https://github.com/NixOS/nixpkgs/issues/45039 https://github.com/DavHau/mach-nix/issues/125 --- pkgs/applications/window-managers/qtile/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/window-managers/qtile/default.nix b/pkgs/applications/window-managers/qtile/default.nix index eccf5c163a8e..047bc9f05993 100644 --- a/pkgs/applications/window-managers/qtile/default.nix +++ b/pkgs/applications/window-managers/qtile/default.nix @@ -34,7 +34,18 @@ python37Packages.buildPythonApplication rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ glib libxcb cairo pango python37Packages.xcffib ]; - pythonPath = with python37Packages; [ xcffib cairocffi-xcffib setuptools setuptools_scm ]; + pythonPath = with python37Packages; [ + xcffib + cairocffi-xcffib + setuptools + setuptools_scm + dateutil + dbus-python + mpd2 + psutil + pyxdg + pygobject3 + ]; postInstall = '' wrapProgram $out/bin/qtile \