From 750a94a55122cb65426d067c13f93c388de18702 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Wed, 4 Sep 2024 12:00:00 +0000 Subject: [PATCH] pantalaimon: fix startup Fixes: ImportError: cannot import name GLib, introspection typelib not found --- .../instant-messengers/pantalaimon/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/pantalaimon/default.nix b/pkgs/applications/networking/instant-messengers/pantalaimon/default.nix index f5118bb96863..994596f8af16 100644 --- a/pkgs/applications/networking/instant-messengers/pantalaimon/default.nix +++ b/pkgs/applications/networking/instant-messengers/pantalaimon/default.nix @@ -5,6 +5,7 @@ , installShellFiles , nixosTests , enableDbusUi ? true +, wrapGAppsHook3 }: python3Packages.buildPythonApplication rec { @@ -61,6 +62,15 @@ python3Packages.buildPythonApplication rec { ] ++ lib.flatten (lib.attrValues optional-dependencies); + nativeBuildInputs = lib.optionals enableDbusUi [ + wrapGAppsHook3 + ]; + + dontWrapGApps = enableDbusUi; + makeWrapperArgs = lib.optionals enableDbusUi [ + "\${gappsWrapperArgs[@]}" + ]; + # darwin has difficulty communicating with server, fails some integration tests doCheck = !stdenv.isDarwin;