This is copied from NixOS, which is under MIT licence.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome/misc/gpaste/
diff --git a/src/gnome-shell/extension.js b/src/gnome-shell/extension.js
index c8773fd6..9efbed67 100644
--- a/src/gnome-shell/extension.js
+++ b/src/gnome-shell/extension.js
@@ -6,6 +6,8 @@
const Config = imports.misc.config;
+imports.gi.GIRepository.Repository.prepend_search_path('@typelibPath@');
+
imports.gi.versions.Clutter = Config.LIBMUTTER_API_VERSION;
imports.gi.versions.GLib = '2.0';
imports.gi.versions.GPaste = '2';
diff --git a/src/gnome-shell/prefs.js b/src/gnome-shell/prefs.js
index 32244ab2..74b85572 100644
--- a/src/gnome-shell/prefs.js
+++ b/src/gnome-shell/prefs.js
@@ -6,6 +6,8 @@
imports.gi.versions.GPasteGtk = '4';
+imports.gi.GIRepository.Repository.prepend_search_path('@typelibPath@');
+
const ExtensionUtils = imports.misc.extensionUtils;
const { GPasteGtk } = imports.gi;
diff --git a/src/libgpaste/gpaste/gpaste-settings.c b/src/libgpaste/gpaste/gpaste-settings.c
index 7e53eb64..57c399fc 100644
--- a/src/libgpaste/gpaste/gpaste-settings.c
+++ b/src/libgpaste/gpaste/gpaste-settings.c
@@ -1013,7 +1013,11 @@ create_g_settings (void)
}
else
{
- return g_settings_new (G_PASTE_SETTINGS_NAME);
+ // library used by introspection requires schemas but we cannot set XDG_DATA_DIRS for the library
+ GSettingsSchemaSource *schema_source = g_settings_schema_source_new_from_directory ("@gschemasCompiled@", NULL, FALSE, NULL);
+ g_autoptr (GSettingsSchema) schema = g_settings_schema_source_lookup (schema_source, G_PASTE_SETTINGS_NAME, FALSE);
+ g_settings_schema_source_unref (schema_source);
+ return g_settings_new_full (schema, NULL, NULL);
}
}
r
committer
range
Age Commit message (Expand ) Author
2021-12-13 gnu: Simplify package inputs. ...This commit was obtained by running:
./pre-inst-env guix style
without any additional argument.
Ludovic Courtès
2021-10-02 gnu: Update gtkmm to 4.2.0, add gtkmm@3, and adjust gtkmm@2. ...* gnu/packages/gtk.scm (gtkmm)[version]: Update to 4.2.0.
[arguments](meson): New argument.
[native-inputs]: Add glib:bin.
[propagated-inputs]: Replace gtk+ with gtk.
(gtkmm-3): New variable.
(gtkmm-2)[arguments]: Strip certain inherited arguments.
* gnu/packages/animation.scm (synfigstudio)[inputs]: Switch to gtkmm-3.
* gnu/packages/astronomy.scm (stackistry)[inputs]: Ditto.
* gnu/packages/audio.scm (guitarix)[inputs]: Ditto.
* gnu/packages/disk.scm (parted)[inputs]: Ditto.
* gnu/packages/gnome.scm (gnome-system-monitor)[inputs]: Ditto.
(workrave)[inputs]: Ditto.
(gnote)[inputs]: Ditto.
* gnu/packages/gobby.scm (gobby)[inputs]: Ditto.
* gnu/packages/inkscape.scm (inkscape)[inputs]: Ditto.
* gnu/packages/mail.scm (astroid)[inputs]: Ditto.
* gnu/packages/mate.scm (mate-system-monitor)[inputs]: Ditto.
* gnu/packages/music.scm (tascam-gtk)[inputs]: Ditto.
* gnu/packages/photo.scm (rawtherapee)[inputs]: Ditto.
* gnu/packages/pulseaudio.scm (pavucontrol)[inputs]: Ditto.
(paprefs)[inputs]: Ditto.
* gnu/packages/text-editors.scm (jucipp)[inputs]: Ditto.
* gnu/packages/wm.scm (waybar)[inputs]: Ditto.
Raghav Gururajan
2021-09-12 gnu: obby: Fix build. ...* gnu/packages/gobby.scm (obby)[inputs]: Replace libsigc++ with
libsigc++-2.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Felix Gruber
2021-09-12 gnu: gobby: Update to 0.6.0. ...This fixes a build failure due to our libinfinite being too recent for
gobby 0.5.0.
* gnu/packages/gobby.scm (gobby): Update to 0.6.0.
[build-system]: Change to glib-or-gtk-build-system which helps to find
glib-compile-schemas.
[native-inputs]: Add itstool.
[inputs]: Replace gtkmm-2 with gtkmm and gtksourceview-2 with
gtksourceview-3.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Felix Gruber
2021-09-12 gnu: libnet6: Fix build. ...* gnu/packages/gobby.scm (libnet6)[inputs]: replace libsigc++ with
libsigc++-2.
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Felix Gruber
2021-01-03 gnu: obby: Omit static library. ...* gnu/packages/gobby.scm (obby)[arguments]: Add ‘--disable-static’
to #:configure-flags.
Tobias Geerinckx-Rice
2021-01-03 gnu: libnet6: Omit static library. ...* gnu/packages/gobby.scm (libnet6)[arguments]: Add ‘--disable-static’
to #:configure-flags.
Tobias Geerinckx-Rice
2021-01-03 gnu: libinfinity: Omit static libraries ...* gnu/packages/gobby.scm (libinfinity)[arguments]: Add
‘--disable-static’ to #:configure-flags.
Tobias Geerinckx-Rice
2021-01-02 gnu: libinfinity: Update to 0.7.2. ...* gnu/packages/gobby.scm (libinfinity): Update to 0.7.2.
Efraim Flashner