1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

pantheon.wingpanel-indicator-keyboard: 2.2.0 -> 2.2.1

This commit is contained in:
worldofpeace 2020-04-03 17:13:59 -04:00
parent a715607577
commit 777fe621fa
2 changed files with 6 additions and 21 deletions

View file

@ -17,13 +17,13 @@
stdenv.mkDerivation rec {
pname = "wingpanel-indicator-keyboard";
version = "2.2.0";
version = "2.2.1";
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "0jc12xfaj3micpjssxc7m6hzssvyq26ln5az05x5f1j6v8lccbyn";
sha256 = "0q32qc6jh5w0i1ixkl59pys8r3hxmbig8854q7sxi07vlk9g3i7y";
};
passthru = {
@ -45,18 +45,16 @@ stdenv.mkDerivation rec {
gtk3
libgee
wingpanel
xorg.xkeyboardconfig
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
libgnomekbd_path = "${libgnomekbd}/bin/";
config = "${xorg.xkeyboardconfig}/share/X11/xkb/rules/evdev.xml";
gkbd_keyboard_display = "${libgnomekbd}/bin/gkbd-keyboard-display";
})
];
PKG_CONFIG_WINGPANEL_2_0_INDICATORSDIR = "${placeholder "out"}/lib/wingpanel";
meta = with stdenv.lib; {
description = "Keyboard Indicator for Wingpanel";
homepage = https://github.com/elementary/wingpanel-indicator-keyboard;

View file

@ -1,5 +1,5 @@
diff --git a/src/Indicator.vala b/src/Indicator.vala
index cd7ca49..0bef9c7 100644
index cd7ca49..7813789 100644
--- a/src/Indicator.vala
+++ b/src/Indicator.vala
@@ -94,7 +94,7 @@ public class Keyboard.Indicator : Wingpanel.Indicator {
@ -7,20 +7,7 @@ index cd7ca49..0bef9c7 100644
close ();
- string command = "gkbd-keyboard-display \"--layout=" + layouts.get_current_with_variant () + "\"";
+ string command = "@libgnomekbd_path@gkbd-keyboard-display \"--layout=" + layouts.get_current_with_variant () + "\"";
+ string command = "@gkbd_keyboard_display@ \"--layout=" + layouts.get_current_with_variant () + "\"";
try {
AppInfo.create_from_commandline (command, null, AppInfoCreateFlags.NONE).launch (null, null);
diff --git a/src/LayoutsManager.vala b/src/LayoutsManager.vala
index 1bac80e..67df847 100644
--- a/src/LayoutsManager.vala
+++ b/src/LayoutsManager.vala
@@ -97,7 +97,7 @@ public class Keyboard.Widgets.LayoutManager : Gtk.ScrolledWindow {
public string? get_name_for_xkb_layout (string language, string? variant) {
debug ("get_name_for_xkb_layout (%s, %s)", language, variant);
- Xml.Doc* doc = Xml.Parser.parse_file ("/usr/share/X11/xkb/rules/evdev.xml");
+ Xml.Doc* doc = Xml.Parser.parse_file ("@config@");
if (doc == null) {
critical ("'evdev.xml' not found or permissions incorrect\n");
return null;