touchegg: 1.1.1 -> 2.0.11

Co-Authored-By: Audrey MP <astatide@users.noreply.github.com>
Co-Authored-By: Rasmus T. Bjerg <rs.bjerg@gmail.com>
This commit is contained in:
Bobby Rong 2021-08-13 20:45:51 +08:00
parent 5bab454300
commit 72b2f5ab09
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -1,26 +1,57 @@
{ lib, stdenv, fetchurl, xorg, xorgserver, qt4, libGLU, libGL, geis, qmake4Hook }: { stdenv, lib
, fetchFromGitHub
, fetchpatch
, systemd
, libinput
, pugixml
, cairo
, xorg
, gtk3-x11
, pcre
, pkg-config
, cmake
, pantheon
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "touchegg"; pname = "touchegg";
version = "1.1.1"; version = "2.0.11";
src = fetchurl { src = fetchFromGitHub {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/touchegg/${pname}-${version}.tar.gz"; owner = "JoseExposito";
sha256 = "95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038"; repo = pname;
rev = version;
sha256 = "1zfiqs5vqlb6drnqx9nsmhgy8qc6svzr8zyjkqvwkpbgrc6ifap9";
}; };
buildInputs = [ xorgserver libGLU libGL xorg.libX11 xorg.libXtst xorg.libXext qt4 geis ]; PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
nativeBuildInputs = [ qmake4Hook ]; buildInputs = [
systemd
libinput
pugixml
cairo
gtk3-x11
pcre
] ++ (with xorg; [
libX11
libXtst
libXrandr
libXi
libXdmcp
libpthreadstubs
libxcb
]);
preConfigure = '' nativeBuildInputs = [
sed -e "s@/usr/@$out/@g" -i $(find . -name touchegg.pro) pkg-config
sed -e "s@/usr/@$out/@g" -i $(find ./src/touchegg/config/ -name Config.cpp) cmake
''; ];
meta = { meta = with lib; {
homepage = "https://github.com/JoseExposito/touchegg"; homepage = "https://github.com/JoseExposito/touchegg";
description = "Macro binding for touch surfaces"; description = "Linux multi-touch gesture recognizer";
license = lib.licenses.gpl2; license = licenses.gpl3Plus;
platforms = lib.platforms.linux; platforms = platforms.linux;
maintainers = pantheon.maintainers;
}; };
} }