gnomeExtensions.user-themes-x: add patch for libglycin{,-gtk4}
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
gtk4,
|
||||
desktop-file-utils,
|
||||
xdg-user-dirs,
|
||||
libglycin,
|
||||
libglycin-gtk4,
|
||||
}:
|
||||
let
|
||||
# Helper method to reduce redundancy
|
||||
@@ -227,6 +229,17 @@ lib.trivial.pipe super [
|
||||
meta.maintainers = with lib.maintainers; [ andersk ];
|
||||
}))
|
||||
|
||||
(patchExtension "user-theme-x@tuberry.github.io" (old: {
|
||||
patches = [
|
||||
(replaceVars ./extensionOverridesPatches/user-theme-x_at_tuberry.github.io.patch {
|
||||
typelibPath = lib.makeSearchPath "/lib/girepository-1.0" [
|
||||
libglycin
|
||||
libglycin-gtk4
|
||||
];
|
||||
})
|
||||
];
|
||||
}))
|
||||
|
||||
(patchExtension "Vitals@CoreCoding.com" (old: {
|
||||
patches = [
|
||||
(replaceVars ./extensionOverridesPatches/vitals_at_corecoding.com.patch {
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
diff --git a/__nix-prepend-search-paths.js b/__nix-prepend-search-paths.js
|
||||
new file mode 100644
|
||||
index 0000000..bd477f1
|
||||
--- /dev/null
|
||||
+++ b/__nix-prepend-search-paths.js
|
||||
@@ -0,0 +1,2 @@
|
||||
+import GIRepository from "gi://GIRepository";
|
||||
+"@typelibPath@".split(":").forEach(path => GIRepository.Repository.dup_default().prepend_search_path(path));
|
||||
diff --git a/prefs.js b/prefs.js
|
||||
index 456827c..4849e92 100644
|
||||
--- a/prefs.js
|
||||
+++ b/prefs.js
|
||||
@@ -1,6 +1,8 @@
|
||||
// SPDX-FileCopyrightText: tuberry
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
+import './__nix-prepend-search-paths.js';
|
||||
+
|
||||
import Adw from 'gi://Adw';
|
||||
import Gdk from 'gi://Gdk';
|
||||
import Gio from 'gi://Gio';
|
||||
|
||||
Reference in New Issue
Block a user