2011-08-08 03:20:29 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, mtdev
|
|
|
|
, xorgserver
|
|
|
|
, xproto
|
|
|
|
, pixman
|
|
|
|
, xextproto
|
|
|
|
, inputproto
|
|
|
|
, randrproto
|
|
|
|
, libpciaccess
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xf86-input-multitouch-20110312";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = http://bitmath.org/git/multitouch.git;
|
|
|
|
rev = "4d87c041f6a232aa30528d70d4b9946d1824b4ed";
|
2012-01-13 09:26:45 +01:00
|
|
|
sha256 = "79397c8f99deb2a415e8c9008a2847d973ad19ea004e732613baed707df46fc9";
|
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 = ''
|
|
|
|
make INCLUDE="$NIX_CFLAGS_COMPILE -I${xorgserver}/include/xorg -I${pixman}/include/pixman-1 -Iinclude"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
license = "gplv2";
|
|
|
|
};
|
2011-08-08 03:20:29 +02:00
|
|
|
}
|
2011-08-08 03:20:39 +02:00
|
|
|
|