nixpkgs/pkgs/os-specific/linux/xf86-input-multitouch/default.nix
Arie Middelkoop 37fe977ad8 Fixed the hash of the multitouch package.
Note: the specified rev is still the latest in the master branch,
so it's actually odd that the computed hash is not correct.

svn path=/nixpkgs/trunk/; revision=31506
2012-01-13 08:26:45 +00:00

54 lines
1.2 KiB
Nix

{ 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";
sha256 = "79397c8f99deb2a415e8c9008a2847d973ad19ea004e732613baed707df46fc9";
};
# Configuration from http://bitmath.org/code/multitouch/
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
ensureDir $out/include/xorg
echo -n "$confFile" > $out/include/xorg/10-multitouch.conf
'';
meta = {
homepage = http://bitmath.org/code/multitouch/;
description = "Brings multitouch gestures to the Linux desktop";
license = "gplv2";
maintainers = [ stdenv.lib.maintainers.shlevy ];
};
}