Initial xf86-input-wacom nix expression
Builds here. Haven't tested whether it works with real hardware yet. svn path=/nixpkgs/trunk/; revision=21019
This commit is contained in:
parent
e90a24df10
commit
a9d1a2825b
3
pkgs/os-specific/linux/xf86-input-wacom/10-wacom.rules
Normal file
3
pkgs/os-specific/linux/xf86-input-wacom/10-wacom.rules
Normal file
@ -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"
|
33
pkgs/os-specific/linux/xf86-input-wacom/default.nix
Normal file
33
pkgs/os-specific/linux/xf86-input-wacom/default.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
}
|
@ -6474,6 +6474,11 @@ let
|
|||||||
inherit fetchurl stdenv qt4 imagemagick inkscape;
|
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) {
|
xmoto = builderDefsPackage (import ../games/xmoto) {
|
||||||
inherit chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
inherit chipmunk sqlite curl zlib bzip2 libjpeg libpng
|
||||||
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
freeglut mesa SDL SDL_mixer SDL_image SDL_net SDL_ttf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user