2021-05-20 03:14:52 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, xorgproto
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXi
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, libXrender
|
|
|
|
, ncurses
|
|
|
|
, pixman
|
|
|
|
, pkg-config
|
|
|
|
, udev
|
|
|
|
, utilmacros
|
|
|
|
, xorgserver
|
|
|
|
}:
|
2010-04-11 23:42:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-20 03:14:52 +01:00
|
|
|
pname = "xf86-input-wacom";
|
|
|
|
version = "0.40.0";
|
2010-04-11 23:42:28 +01:00
|
|
|
|
2021-05-20 03:14:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxwacom";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "sha256-0U4pAB5vsIlBewCBqQ4SLHDrwqtr9nh7knZpXZMkzck=";
|
2010-04-11 23:42:28 +01:00
|
|
|
};
|
|
|
|
|
2021-05-20 03:14:52 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXi
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
ncurses
|
|
|
|
udev
|
|
|
|
utilmacros
|
|
|
|
pixman
|
|
|
|
xorgproto
|
|
|
|
xorgserver
|
|
|
|
];
|
2010-04-11 23:42:28 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/X11/xorg.conf.d
|
2011-01-27 21:10:41 +00:00
|
|
|
configureFlags="--with-xorg-module-dir=$out/lib/xorg/modules
|
|
|
|
--with-sdkdir=$out/include/xorg --with-xorg-conf-dir=$out/share/X11/xorg.conf.d"
|
2010-04-11 23:42:28 +01:00
|
|
|
'';
|
|
|
|
|
2012-07-16 04:03:23 +01:00
|
|
|
CFLAGS = "-I${pixman}/include/pixman-1";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 03:14:52 +01:00
|
|
|
maintainers = with maintainers; [ goibhniu fortuneteller2k ];
|
2010-04-11 23:42:28 +01:00
|
|
|
description = "Wacom digitizer driver for X11";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://linuxwacom.sourceforge.net";
|
2021-05-20 03:14:52 +01:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux; # Probably, works with other unixes as well
|
2010-04-11 23:42:28 +01:00
|
|
|
};
|
|
|
|
}
|