1{ stdenv, fetchurl, xlibs, xorgserver, qt4, mesa, geis }:
2
3stdenv.mkDerivation rec {
4 name = "touchegg-${version}";
5 version = "1.1.1";
6 src = fetchurl {
7 url = "https://touchegg.googlecode.com/files/${name}.tar.gz";
8 sha256 = "95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038";
9 };
10
11 buildInputs = [ xorgserver mesa xlibs.libX11 xlibs.libXtst xlibs.libXext qt4 geis ];
12
13 configurePhase = ''
14 sed -e "s@/usr/@$out/@g" -i $(find . -name touchegg.pro)
15 sed -e "s@/usr/@$out/@g" -i $(find ./src/touchegg/config/ -name Config.cpp)
16 qmake touchegg.pro
17 '';
18
19 meta = {
20 homepage = "https://code.google.com/p/touchegg/";
21 description = "Macro binding for touch surfaces";
22 license = stdenv.lib.licenses.gpl2;
23 platforms = stdenv.lib.platforms.linux;
24 };
25}