mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
dc14fc06da
svn path=/nixpkgs/trunk/; revision=17488
35 lines
865 B
Nix
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;
|
|
};
|
|
}
|