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 00000000000..aa9865ac637 --- /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 00000000000..b1468a18990 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e62c8702df3..640134b0687 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6474,6 +6474,11 @@ let inherit fetchurl stdenv qt4 imagemagick inkscape; }; + xf86_input_wacom = import ../os-specific/linux/xf86-input-wacom { + inherit stdenv fetchurl ncurses pkgconfig file; + inherit (xorg) libX11 libXi inputproto xproto xorgserver; + }; + xmoto = builderDefsPackage (import ../games/xmoto) { inherit chipmunk sqlite curl zlib bzip2 libjpeg libpng freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf