2009-09-10 14:21:25 +02:00
|
|
|
{ stdenv, fetchurl, libX11, libXi, inputproto
|
|
|
|
, xproto, ncurses, pkgconfig, xorgserver }:
|
2006-01-31 16:18:27 +01:00
|
|
|
|
2009-09-29 08:48:37 +02:00
|
|
|
let s = import ./src-for-default.nix; in
|
|
|
|
|
2009-09-10 14:21:25 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2009-09-29 08:48:37 +02:00
|
|
|
inherit (s) name;
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-01-31 16:18:27 +01:00
|
|
|
src = fetchurl {
|
2009-09-29 08:48:37 +02:00
|
|
|
url = s.url;
|
|
|
|
sha256 = s.hash;
|
2006-01-31 16:18:27 +01:00
|
|
|
};
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2009-09-10 14:21:25 +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-09-10 14:21:25 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
2009-04-23 15:31:10 +02:00
|
|
|
ensureDir $out/etc/udev/rules.d
|
|
|
|
cp ${./10-wacom.rules} $out/etc/udev/rules.d/10-wacom.rules
|
2009-09-10 14:21:25 +02:00
|
|
|
'';
|
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
|
|
|
}
|