2009-09-10 13:21:25 +01:00
|
|
|
{ stdenv, fetchurl, libX11, libXi, inputproto
|
|
|
|
, xproto, ncurses, pkgconfig, xorgserver }:
|
2006-01-31 15:18:27 +00:00
|
|
|
|
2009-09-29 07:48:37 +01:00
|
|
|
let s = import ./src-for-default.nix; in
|
|
|
|
|
2009-09-10 13:21:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-09-29 07:48:37 +01:00
|
|
|
inherit (s) name;
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2006-01-31 15:18:27 +00:00
|
|
|
src = fetchurl {
|
2009-09-29 07:48:37 +01:00
|
|
|
url = s.url;
|
|
|
|
sha256 = s.hash;
|
2006-01-31 15:18:27 +00:00
|
|
|
};
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2009-09-10 13:21:25 +01:00
|
|
|
buildInputs = [ libX11 libXi inputproto xproto ncurses pkgconfig xorgserver ];
|
2009-04-23 14:31:10 +01:00
|
|
|
|
2009-08-03 15:15:22 +01: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 13:21:25 +01:00
|
|
|
postInstall =
|
|
|
|
''
|
2009-04-23 14:31:10 +01:00
|
|
|
ensureDir $out/etc/udev/rules.d
|
|
|
|
cp ${./10-wacom.rules} $out/etc/udev/rules.d/10-wacom.rules
|
2009-09-10 13:21:25 +01:00
|
|
|
'';
|
2009-08-03 15:15:22 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
description = "Wacom digitizer driver for X11";
|
|
|
|
homepage = http://linuxwacom.sf.net;
|
|
|
|
};
|
2006-01-31 15:18:27 +00:00
|
|
|
}
|