forked from mirrors/nixpkgs
pantheon.switchboard-plug-mouse-touchpad: 2.4.2 -> 6.0.0
This commit is contained in:
parent
f8359434e3
commit
b5fc2607dd
|
@ -1,28 +1,33 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, nix-update-script
|
||||
, substituteAll
|
||||
, pantheon
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, vala
|
||||
, libgee
|
||||
, libxml2
|
||||
, granite
|
||||
, gtk3
|
||||
, switchboard
|
||||
, elementary-settings-daemon
|
||||
, gnome-settings-daemon
|
||||
, glib
|
||||
, gala # needed for gestures support
|
||||
, touchegg
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "switchboard-plug-mouse-touchpad";
|
||||
version = "2.4.2";
|
||||
version = "6.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elementary";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-WJ/GRhZsSwC31HEIjHHWBy9/Skqbwor0tNVTedue3kk=";
|
||||
sha256 = "19kiwrdpan8hr5r79y591591qjx7pm3x814xfkg9vi11ndbcrznr";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
|
@ -39,18 +44,34 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
buildInputs = [
|
||||
gala
|
||||
glib
|
||||
granite
|
||||
gtk3
|
||||
libgee
|
||||
elementary-settings-daemon
|
||||
libxml2
|
||||
gnome-settings-daemon
|
||||
switchboard
|
||||
touchegg
|
||||
];
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
touchegg = touchegg;
|
||||
})
|
||||
# Upstream code not respecting our localedir
|
||||
# https://github.com/elementary/switchboard-plug-mouse-touchpad/pull/185
|
||||
(fetchpatch {
|
||||
url = "https://github.com/elementary/switchboard-plug-mouse-touchpad/commit/a6f84dc08be5dc6f7535082bacfa24e2dff4ef67.patch";
|
||||
sha256 = "0fxl894dzw1f84n36mb9y7gshs69xcb0samvs2gsa0pcdlzfp3cy";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Switchboard Mouse & Touchpad Plug";
|
||||
homepage = "https://github.com/elementary/switchboard-plug-mouse-touchpad";
|
||||
license = licenses.gpl2Plus;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = pantheon.maintainers;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/Utils/ToucheggSettings.vala b/src/Utils/ToucheggSettings.vala
|
||||
index 1d621b9c..73c89714 100644
|
||||
--- a/src/Utils/ToucheggSettings.vala
|
||||
+++ b/src/Utils/ToucheggSettings.vala
|
||||
@@ -36,7 +36,7 @@ public class MouseTouchpad.ToucheggSettings : GLib.Object {
|
||||
private const string MAXIMIZE_4_XPATH = "//application[@name=\"All\"]/gesture[@fingers=\"4\"]/action[@type=\"MAXIMIZE_RESTORE_WINDOW\"]/..";
|
||||
|
||||
public ToucheggSettings () {
|
||||
- system_config_path = Path.build_filename (GLib.Path.DIR_SEPARATOR_S, "usr", "share", "touchegg", "touchegg.conf");
|
||||
+ system_config_path = Path.build_filename ("@touchegg@", "share", "touchegg", "touchegg.conf");
|
||||
user_config_dir_path = Path.build_filename (GLib.Environment.get_home_dir (), ".config", "touchegg");
|
||||
user_config_path = Path.build_filename (GLib.Environment.get_home_dir (), ".config", "touchegg", "touchegg.conf");
|
||||
}
|
Loading…
Reference in a new issue