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