blob: 2f46d950d584b1d5404195b1c4e2e8add7534fef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ stdenv, mkDerivation, fetchzip, autoPatchelfHook, libusb1, libX11, libXtst, qtbase, libglvnd }:
mkDerivation rec {
pname = "pentablet-driver";
version = "1.2.13.1";
src = fetchzip {
url = "https://download01.xp-pen.com/file/2020/04/Linux_Pentablet_V${version}.tar.gz(20200428).zip";
sha256 = "1r423hcpi26v82pzl59br1zw5vablikclqsy6mcqi0v5p84hfrdd";
} + /Linux_Pentablet_V1.2.13.1.tar.gz;
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
libusb1
libX11
libXtst
qtbase
libglvnd
stdenv.cc.cc.lib
];
installPhase = ''
mkdir -p $out/bin
cp Pentablet_Driver $out/bin/pentablet-driver
cp config.xml $out/bin/config.xml
'';
meta = with stdenv.lib; {
homepage = "https://www.xp-pen.com/download-46.html";
description = "Driver for XP-PEN Pentablet drawing tablets";
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ ivar ];
};
}
|