3
0
Fork 0
forked from mirrors/nixpkgs

Merge PR #225300: gnomeExtensions.vitals: Patch it to find libgtop

This commit is contained in:
piegames 2023-04-11 12:35:57 +02:00 committed by GitHub
commit 7e9d942c72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View file

@ -122,6 +122,15 @@ super: lib.trivial.pipe super [
];
}))
(patchExtension "Vitals@CoreCoding.com" (old: {
patches = [
(substituteAll {
src = ./extensionOverridesPatches/vitals_at_corecoding.com.patch;
gtop_path = "${libgtop}/lib/girepository-1.0";
})
];
}))
(patchExtension "unite@hardpixel.eu" (old: {
buildInputs = [ xprop ];

View file

@ -0,0 +1,14 @@
diff --git i/sensors.js w/sensors.js
index 5ab7068..00cfa19 100644
--- i/sensors.js
+++ w/sensors.js
@@ -29,6 +29,9 @@ const Me = imports.misc.extensionUtils.getCurrentExtension();
const FileModule = Me.imports.helpers.file;
const Gettext = imports.gettext.domain(Me.metadata['gettext-domain']);
const _ = Gettext.gettext;
+
+imports.gi.GIRepository.Repository.prepend_search_path('@gtop_path@');
+
const NM = imports.gi.NM;
let GTop, hasGTop = true;