2009-08-03 16:15:22 +02:00
|
|
|
{stdenv, fetchurl, libX11, libXi,
|
|
|
|
inputproto, xproto, ncurses, pkgconfig,
|
|
|
|
xorgserver,
|
|
|
|
udevSupport ? false}:
|
2006-01-31 16:18:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-08-03 16:15:22 +02:00
|
|
|
name = "linuxwacom-0.8.4";
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-01-31 16:18:27 +01:00
|
|
|
src = fetchurl {
|
2009-08-03 16:15:22 +02:00
|
|
|
url = "http://prdownloads.sourceforge.net/linuxwacom/linuxwacom-0.8.4.tar.bz2";
|
|
|
|
sha256 = "1g1myn9wmczavkkb9jjfqq87la3n94nnwjm7w7yyyxsrdw4bavp5";
|
2006-01-31 16:18:27 +01:00
|
|
|
};
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2009-08-03 16:15:22 +02:00
|
|
|
buildInputs = [libX11 libXi inputproto
|
|
|
|
xproto ncurses pkgconfig xorgserver];
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2009-08-03 16:15:22 +02:00
|
|
|
preConfigure = ''
|
|
|
|
./configure --enable-wacomdrv --prefix=$out \
|
|
|
|
--with-xlib --with-xorg-sdk --enable-wacdump --enable-xsetwacom \
|
|
|
|
--with-xmoduledir=$out/lib/xorg/modules/input
|
|
|
|
mv configure configure.removed
|
|
|
|
'';
|
|
|
|
|
2009-04-23 15:31:10 +02:00
|
|
|
postInstall = ''
|
|
|
|
if test -n "${toString udevSupport}"; then
|
|
|
|
ensureDir $out/etc/udev/rules.d
|
|
|
|
cp ${./10-wacom.rules} $out/etc/udev/rules.d/10-wacom.rules
|
|
|
|
fi
|
|
|
|
'';
|
2009-08-03 16:15:22 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
description = "Wacom digitizer driver for X11";
|
|
|
|
homepage = http://linuxwacom.sf.net;
|
|
|
|
};
|
2006-01-31 16:18:27 +01:00
|
|
|
}
|