summary refs log tree commit diff
path: root/pkgs/os-specific/linux/xf86-input-wacom
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2010-04-11 22:42:28 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2010-04-11 22:42:28 +0000
commita9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1 (patch)
tree3147f721b57f220631afea308fdb642045948ad1 /pkgs/os-specific/linux/xf86-input-wacom
parente90a24df10487b80dc5082df0c98f57c598ea85e (diff)
downloadnixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.tar
nixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.tar.gz
nixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.tar.bz2
nixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.tar.lz
nixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.tar.xz
nixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.tar.zst
nixlib-a9d1a2825b2ddbb7f0dfe6efe579dbc07bb1fee1.zip
Initial xf86-input-wacom nix expression
Builds here. Haven't tested whether it works with real hardware yet.

svn path=/nixpkgs/trunk/; revision=21019
Diffstat (limited to 'pkgs/os-specific/linux/xf86-input-wacom')
-rw-r--r--pkgs/os-specific/linux/xf86-input-wacom/10-wacom.rules3
-rw-r--r--pkgs/os-specific/linux/xf86-input-wacom/default.nix33
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/xf86-input-wacom/10-wacom.rules b/pkgs/os-specific/linux/xf86-input-wacom/10-wacom.rules
new file mode 100644
index 000000000000..aa9865ac6378
--- /dev/null
+++ b/pkgs/os-specific/linux/xf86-input-wacom/10-wacom.rules
@@ -0,0 +1,3 @@
+-# udev rule to create /dev/input/wacomN for wacom tablets
+-
+-KERNEL="event*", SYSFS{manufacturer}="WACOM", NAME="input/%k", SYMLINK="input/wacom%e"
diff --git a/pkgs/os-specific/linux/xf86-input-wacom/default.nix b/pkgs/os-specific/linux/xf86-input-wacom/default.nix
new file mode 100644
index 000000000000..b1468a18990d
--- /dev/null
+++ b/pkgs/os-specific/linux/xf86-input-wacom/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl, libX11, libXi, inputproto, file
+, xproto, ncurses, pkgconfig, xorgserver }:
+
+stdenv.mkDerivation rec {
+  name = "xf86-input-wacom-0.10.5";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/linuxwacom/${name}.tar.bz2";
+    sha256 = "07rg9a9n1dyjff4awlc5imy44y0lg59qs8h4rr56lgjg612wkmy0";
+  };
+
+  buildInputs = [ libX11 libXi inputproto xproto ncurses pkgconfig xorgserver
+    file ];
+
+  patchPhase="sed -e s@/usr/bin/file@${file}/bin/file@g -i configure";
+
+  preConfigure = ''
+    configureFlags="--with-xorg-module-dir=$out/lib/xorg/modules/input
+    --with-sdkdir=$out/include/xorg"
+  '';
+
+  postInstall =
+    ''
+      ensureDir $out/etc/udev/rules.d
+      cp ${./10-wacom.rules} $out/etc/udev/rules.d/10-wacom.rules
+    '';
+
+  meta = {
+    maintainers = with stdenv.lib.maintainers; [urkud];
+    description = "Wacom digitizer driver for X11";
+    homepage = http://linuxwacom.sourceforge.net;
+  };
+}