2022-01-09 04:05:04 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-08-13 12:45:51 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
2022-01-09 04:05:04 +00:00
|
|
|
, nix-update-script
|
2021-08-13 12:45:51 +00:00
|
|
|
, systemd
|
|
|
|
, libinput
|
|
|
|
, pugixml
|
|
|
|
, cairo
|
|
|
|
, xorg
|
|
|
|
, gtk3-x11
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, pantheon
|
2021-09-13 14:31:04 +00:00
|
|
|
, withPantheon ? false
|
2021-08-13 12:45:51 +00:00
|
|
|
}:
|
2015-02-06 05:53:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "touchegg";
|
2023-08-14 03:16:37 +00:00
|
|
|
version = "2.0.17";
|
2022-01-09 04:05:04 +00:00
|
|
|
|
2021-08-13 12:45:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JoseExposito";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-14 03:16:37 +00:00
|
|
|
sha256 = "sha256-he6ERl6ZNWuD5StUqQWsUjeJ35nD0b8KddIAvntqlOI=";
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
|
|
|
|
2022-01-09 04:05:04 +00:00
|
|
|
patches = lib.optionals withPantheon [
|
2022-11-16 01:42:10 +00:00
|
|
|
# Required for the next patch to apply
|
|
|
|
# Reverts https://github.com/JoseExposito/touchegg/pull/603
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/JoseExposito/touchegg/commit/34e947181d84620021601e7f28deb1983a154da8.patch";
|
|
|
|
sha256 = "sha256-qbWwmEzVXvDAhhrGvMkKN4YNtnFfRW+Yra+i6VEQX4g=";
|
|
|
|
revert = true;
|
|
|
|
})
|
2022-01-09 04:05:04 +00:00
|
|
|
# Disable per-application gesture by default to make sure the default
|
|
|
|
# config does not conflict with Pantheon switchboard settings.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/os-patches/commit/7d9b133e02132d7f13cf2fe850b2fe4c015c3c5e.patch";
|
|
|
|
sha256 = "sha256-ZOGVkxiXoTORXC6doz5r9IObAbYjhsDjgg3HtzlTSUc=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
];
|
2015-02-06 05:53:32 +00:00
|
|
|
|
2021-08-13 12:45:51 +00:00
|
|
|
buildInputs = [
|
|
|
|
systemd
|
|
|
|
libinput
|
|
|
|
pugixml
|
|
|
|
cairo
|
|
|
|
gtk3-x11
|
|
|
|
pcre
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libX11
|
|
|
|
libXtst
|
|
|
|
libXrandr
|
|
|
|
libXi
|
|
|
|
libXdmcp
|
|
|
|
libpthreadstubs
|
|
|
|
libxcb
|
|
|
|
]);
|
2016-04-16 23:52:46 +00:00
|
|
|
|
2022-01-09 04:05:04 +00:00
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
2015-02-06 05:53:32 +00:00
|
|
|
|
2022-01-09 04:05:04 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-01-09 04:05:04 +00:00
|
|
|
};
|
2021-09-13 14:31:04 +00:00
|
|
|
|
2021-08-13 12:45:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/JoseExposito/touchegg";
|
2021-08-13 12:45:51 +00:00
|
|
|
description = "Linux multi-touch gesture recognizer";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "touchegg";
|
2021-08-13 12:45:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 15:00:51 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
2016-04-16 23:52:46 +00:00
|
|
|
}
|