2022-01-13 20:06:32 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-09-22 15:38:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
2022-01-13 20:06:32 +00:00
|
|
|
, nix-update-script
|
2021-09-22 15:38:15 +00:00
|
|
|
, systemd
|
|
|
|
, libinput
|
|
|
|
, pugixml
|
|
|
|
, cairo
|
|
|
|
, xorg
|
|
|
|
, gtk3-x11
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, pantheon
|
|
|
|
, withPantheon ? false
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "touchegg";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "2.0.13";
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JoseExposito";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-wfXA4+HSLFHMvdsnyiTfRxPqdSsvd0RMkKIacf+rLZI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
patches = lib.optionals withPantheon [
|
|
|
|
# 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
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
systemd
|
|
|
|
libinput
|
|
|
|
pugixml
|
|
|
|
cairo
|
|
|
|
gtk3-x11
|
|
|
|
pcre
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libX11
|
|
|
|
libXtst
|
|
|
|
libXrandr
|
|
|
|
libXi
|
|
|
|
libXdmcp
|
|
|
|
libpthreadstubs
|
|
|
|
libxcb
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/JoseExposito/touchegg";
|
2021-09-22 15:38:15 +00:00
|
|
|
description = "Linux multi-touch gesture recognizer";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|