3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/linuxwacom/default.nix
Michael Raskin dc14fc06da Updating linuxwacom
svn path=/nixpkgs/trunk/; revision=17488
2009-09-29 06:48:37 +00:00

35 lines
865 B
Nix

{ stdenv, fetchurl, libX11, libXi, inputproto
, xproto, ncurses, pkgconfig, xorgserver }:
let s = import ./src-for-default.nix; in
stdenv.mkDerivation rec {
inherit (s) name;
src = fetchurl {
url = s.url;
sha256 = s.hash;
};
buildInputs = [ libX11 libXi inputproto xproto ncurses pkgconfig xorgserver ];
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
'';
postInstall =
''
ensureDir $out/etc/udev/rules.d
cp ${./10-wacom.rules} $out/etc/udev/rules.d/10-wacom.rules
'';
meta = {
maintainers = [stdenv.lib.maintainers.raskin];
description = "Wacom digitizer driver for X11";
homepage = http://linuxwacom.sf.net;
};
}