2011-08-08 03:20:29 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, mtdev
|
|
|
|
, xorgserver
|
|
|
|
, xproto
|
|
|
|
, pixman
|
|
|
|
, xextproto
|
|
|
|
, inputproto
|
|
|
|
, randrproto
|
|
|
|
, libpciaccess
|
|
|
|
}:
|
|
|
|
|
2016-04-28 18:52:32 +02:00
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2011-08-08 03:20:29 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xf86-input-multitouch-20110312";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = http://bitmath.org/git/multitouch.git;
|
|
|
|
rev = "4d87c041f6a232aa30528d70d4b9946d1824b4ed";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "1jh52d3lkmchn5xdbz4qn50d30nild1zxvfbvwwl2rbmphs5ww6y";
|
2011-08-08 03:20:29 +02:00
|
|
|
};
|
|
|
|
|
2011-08-08 03:20:47 +02:00
|
|
|
# Configuration from http://bitmath.org/code/multitouch/
|
2011-08-08 03:20:29 +02:00
|
|
|
confFile = ''
|
|
|
|
Section "InputClass"
|
|
|
|
MatchIsTouchpad "true"
|
|
|
|
Identifier "Multitouch Touchpad"
|
|
|
|
Driver "multitouch"
|
|
|
|
EndSection
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ mtdev xproto xextproto inputproto libpciaccess randrproto ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-04-16 19:57:36 +02:00
|
|
|
make INCLUDE="$NIX_CFLAGS_COMPILE -I${xorgserver.dev}/include/xorg -I${pixman}/include/pixman-1 -Iinclude"
|
2011-08-08 03:20:29 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make DESTDIR="$out" LIBDIR="lib" install
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/include/xorg
|
2011-08-08 03:20:29 +02:00
|
|
|
echo -n "$confFile" > $out/include/xorg/10-multitouch.conf
|
|
|
|
'';
|
2011-08-08 03:20:39 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://bitmath.org/code/multitouch/;
|
|
|
|
|
|
|
|
description = "Brings multitouch gestures to the Linux desktop";
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-08-08 03:20:39 +02:00
|
|
|
};
|
2011-08-08 03:20:29 +02:00
|
|
|
}
|