gnomeExtensions.EasyScreenCast: 1.4.0 -> 1.7.0

+39 -15
+4 -4
pkgs/desktops/gnome/extensions/EasyScreenCast/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, substituteAll, glib, gnome, gettext }: 1 + { lib, stdenv, fetchFromGitHub, substituteAll, glib, gnome, gettext, jq }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "gnome-shell-extension-EasyScreenCast"; 5 - version = "1.4.0"; 5 + version = "1.7.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "EasyScreenCast"; 9 9 repo = "EasyScreenCast"; 10 10 rev = version; 11 - sha256 = "sha256-+lh/hqYC9+DUvLE016KuAY4Ybw8KrqEEG7WG4pUbg2k="; 11 + hash = "sha256-+cH/gczCdxoSrLp5nD82Spo8bSGyRnUUut3Xkmr9f3o="; 12 12 }; 13 13 14 14 patches = [ ··· 19 19 ]; 20 20 21 21 nativeBuildInputs = [ 22 - glib gettext 22 + glib gettext jq 23 23 ]; 24 24 25 25 makeFlags = [ "INSTALLBASE=$(out)/share/gnome-shell/extensions" ];
+35 -11
pkgs/desktops/gnome/extensions/EasyScreenCast/fix-gi-path.patch
··· 1 - diff --git i/utilaudio.js w/utilaudio.js 2 - index 983b29c..7a94de8 100644 3 - --- i/utilaudio.js 4 - +++ w/utilaudio.js 5 - @@ -11,10 +11,7 @@ 6 - */ 1 + diff --git a/prefs.js b/prefs.js 2 + index 97b85a3..2fc6539 100644 3 + --- a/prefs.js 4 + +++ b/prefs.js 5 + @@ -14,8 +14,8 @@ 6 + 'use strict'; 7 7 8 8 const GIRepository = imports.gi.GIRepository; 9 - -GIRepository.Repository.prepend_search_path("/usr/lib/gnome-shell"); 10 - -GIRepository.Repository.prepend_library_path("/usr/lib/gnome-shell"); 11 - -GIRepository.Repository.prepend_search_path("/usr/lib64/gnome-shell"); 12 - -GIRepository.Repository.prepend_library_path("/usr/lib64/gnome-shell"); 9 + -GIRepository.Repository.prepend_search_path('/usr/lib64/gnome-shell'); 10 + -GIRepository.Repository.prepend_library_path('/usr/lib64/gnome-shell'); 11 + +GIRepository.Repository.prepend_search_path('@gnomeShell@/lib/gnome-shell'); 12 + +GIRepository.Repository.prepend_library_path('@gnomeShell@/lib/gnome-shell'); 13 + 14 + const GObject = imports.gi.GObject; 15 + const Gio = imports.gi.Gio; 16 + @@ -746,7 +746,7 @@ const EasyScreenCastSettingsWidget = GObject.registerClass({ 17 + Lib.TalkativeLog('-^-NOT SET xdg-user video'); 18 + 19 + ctx.CtrlExe.Execute( 20 + - '/usr/bin/sh -c "echo $HOME"', 21 + + '/bin/sh -c "echo $HOME"', 22 + true, 23 + (success, out) => { 24 + Lib.TalkativeLog(`-^-CALLBACK sync S: ${success} out: ${out}`); 25 + diff --git a/utilaudio.js b/utilaudio.js 26 + index 957eda2..84af241 100644 27 + --- a/utilaudio.js 28 + +++ b/utilaudio.js 29 + @@ -15,10 +15,7 @@ 30 + 31 + const GObject = imports.gi.GObject; 32 + const GIRepository = imports.gi.GIRepository; 33 + -GIRepository.Repository.prepend_search_path('/usr/lib/gnome-shell'); 34 + -GIRepository.Repository.prepend_library_path('/usr/lib/gnome-shell'); 35 + -GIRepository.Repository.prepend_search_path('/usr/lib64/gnome-shell'); 36 + -GIRepository.Repository.prepend_library_path('/usr/lib64/gnome-shell'); 13 37 +GIRepository.Repository.prepend_search_path("@gnomeShell@/lib/gnome-shell"); 14 38 const Gvc = imports.gi.Gvc; 15 - const Lang = imports.lang; 16 39 40 + const ExtensionUtils = imports.misc.extensionUtils;