summary refs log tree commit diff
path: root/pkgs/os-specific/linux/xf86-input-multitouch
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2011-08-08 01:20:29 +0000
committerShea Levy <shea@shealevy.com>2011-08-08 01:20:29 +0000
commit03b9664e25cdde7e3df427017e68f5f88c06c13f (patch)
tree0dea5f96ba25eba4c6df865fc4c7a3ad322a1f9b /pkgs/os-specific/linux/xf86-input-multitouch
parent3b36c044004ee74386b14475ea69770ff95f7215 (diff)
downloadnixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.tar
nixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.tar.gz
nixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.tar.bz2
nixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.tar.lz
nixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.tar.xz
nixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.tar.zst
nixlib-03b9664e25cdde7e3df427017e68f5f88c06c13f.zip
Add xf86-input-multitouch
svn path=/nixpkgs/trunk/; revision=28369
Diffstat (limited to 'pkgs/os-specific/linux/xf86-input-multitouch')
-rw-r--r--pkgs/os-specific/linux/xf86-input-multitouch/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/xf86-input-multitouch/default.nix b/pkgs/os-specific/linux/xf86-input-multitouch/default.nix
new file mode 100644
index 000000000000..170fd28fbf68
--- /dev/null
+++ b/pkgs/os-specific/linux/xf86-input-multitouch/default.nix
@@ -0,0 +1,41 @@
+{ 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 = "de705e34bc75654139dfcbedfe43a3d182d140b198fcd57ab190d549471305ca";
+  };
+
+  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
+  '';
+}