1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00

gnomeExtensions.gsconnect: 39 -> 41

Update patch so it'll apply on v41.
This commit is contained in:
Doron Behar 2020-09-17 11:39:07 +03:00
parent eaf667bbf0
commit 3f1a356b81
2 changed files with 22 additions and 16 deletions

View file

@ -4,13 +4,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gnome-shell-gsconnect"; pname = "gnome-shell-gsconnect";
version = "39"; version = "41";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "andyholmes"; owner = "andyholmes";
repo = "gnome-shell-extension-gsconnect"; repo = "gnome-shell-extension-gsconnect";
rev = "v${version}"; rev = "v${version}";
sha256 = "0d2wypf36p95v756arf06gfilpb48gp55i1xbqnqvcd10n3q4zc2"; sha256 = "0lcj7k16jki54bsyh01j4ss4hhfddnahcw02zlmlkl637qdv1b5j";
}; };
patches = [ patches = [

View file

@ -1,5 +1,7 @@
--- a/data/org.gnome.Shell.Extensions.GSConnect.desktop diff --git i/data/org.gnome.Shell.Extensions.GSConnect.desktop.in w/data/org.gnome.Shell.Extensions.GSConnect.desktop.in
+++ b/data/org.gnome.Shell.Extensions.GSConnect.desktop index ffb23342..b405c73b 100644
--- i/data/org.gnome.Shell.Extensions.GSConnect.desktop.in
+++ w/data/org.gnome.Shell.Extensions.GSConnect.desktop.in
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
@ -9,18 +11,22 @@
Terminal=false Terminal=false
NoDisplay=true NoDisplay=true
Icon=org.gnome.Shell.Extensions.GSConnect Icon=org.gnome.Shell.Extensions.GSConnect
--- a/src/extension.js diff --git i/src/extension.js w/src/extension.js
+++ b/src/extension.js index 5f32aa68..872c0c61 100644
@@ -1,5 +1,7 @@ --- i/src/extension.js
'use strict'; +++ w/src/extension.js
@@ -1,5 +1,7 @@
+'@typelibPath@'.split(':').forEach(path => imports.gi.GIRepository.Repository.prepend_search_path(path)); 'use strict';
+
const Gio = imports.gi.Gio; +'@typelibPath@'.split(':').forEach(path => imports.gi.GIRepository.Repository.prepend_search_path(path));
const GLib = imports.gi.GLib; +
const Gtk = imports.gi.Gtk; const Gio = imports.gi.Gio;
--- a/src/prefs.js const GObject = imports.gi.GObject;
+++ b/src/prefs.js const Gtk = imports.gi.Gtk;
diff --git i/src/prefs.js w/src/prefs.js
index 07e93099..1c166710 100644
--- i/src/prefs.js
+++ w/src/prefs.js
@@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
'use strict'; 'use strict';