chrome-gnome-shell: Fix missing introspection data
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
commit5df7471c149cb4f20bc1cf292dbb038b66404110
authorJan Tojnar <jtojnar@gmail.com>
dateWed 13 May 2020, 16:48 (7 years ago)
parentc8683da
pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix+3
@@ -6,6 +6,7 @@
66, python3
77, gnome3
88, wrapGAppsHook
9+, gobject-introspection
910}:
1011
1112let
@@ -25,6 +26,7 @@ stdenv.mkDerivation rec {
2526 ninja
2627 jq
2728 wrapGAppsHook
29+ gobject-introspection # for setup-hook
2830 ];
2931
3032 buildInputs = [
@@ -32,6 +34,7 @@ stdenv.mkDerivation rec {
3234 python
3335 pygobject3
3436 requests
37+ gobject-introspection # for Gio typelib
3538 ];
3639
3740 cmakeFlags = [