From 5df7471c149cb4f20bc1cf292dbb038b66404110 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 13 May 2020 16:48:47 +0200 Subject: [PATCH] chrome-gnome-shell: Fix missing introspection data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was crashing with: TypeError: gobject `__main__+ChromeGNOMEShell' doesn't support property `application_id' – that is the constructor of parent class Gio.Application does not recognize the kwarg. This is typically caused by missing pygobject overrides but I think ones for Gio are built-in into pygobject. Even weirder, adding just `${gobject-introspection}/lib/girepository-1.0` seems to fix the issue so it might be missing the whole typelib. But then why does not it fail when importing it? from gi.repository import GLib, Gio For now, I am adding the Gio typelib which should been done from the start but more debugging should be done since weirdness like this can bring more bugs. Fixes: https://github.com/NixOS/nixpkgs/issues/87740 --- .../desktops/gnome-3/extensions/chrome-gnome-shell/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix b/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix index ee0bb82b284a..5308d4bee5ac 100644 --- a/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix +++ b/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix @@ -6,6 +6,7 @@ , python3 , gnome3 , wrapGAppsHook +, gobject-introspection }: let @@ -25,6 +26,7 @@ stdenv.mkDerivation rec { ninja jq wrapGAppsHook + gobject-introspection # for setup-hook ]; buildInputs = [ @@ -32,6 +34,7 @@ stdenv.mkDerivation rec { python pygobject3 requests + gobject-introspection # for Gio typelib ]; cmakeFlags = [