2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, mkDerivation, fetchzip, autoPatchelfHook, libusb1, libX11, libXtst, qtbase, libglvnd }:
|
2020-05-03 20:34:21 +02:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2020-05-03 20:32:32 +02:00
|
|
|
pname = "pentablet-driver";
|
2020-05-03 20:34:21 +02:00
|
|
|
version = "1.2.13.1";
|
2020-03-26 14:41:09 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
2020-05-03 20:34:21 +02:00
|
|
|
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;
|
2020-03-26 14:41:09 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libusb1
|
|
|
|
libX11
|
|
|
|
libXtst
|
|
|
|
qtbase
|
|
|
|
libglvnd
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2020-05-03 20:34:21 +02:00
|
|
|
cp Pentablet_Driver $out/bin/pentablet-driver
|
|
|
|
cp config.xml $out/bin/config.xml
|
2020-03-26 14:41:09 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-26 14:41:09 +01:00
|
|
|
homepage = "https://www.xp-pen.com/download-46.html";
|
2020-05-03 20:32:32 +02:00
|
|
|
description = "Driver for XP-PEN Pentablet drawing tablets";
|
2020-03-26 14:41:09 +01:00
|
|
|
license = licenses.unfree;
|
2020-05-03 20:34:21 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-03-26 14:41:09 +01:00
|
|
|
maintainers = with maintainers; [ ivar ];
|
|
|
|
};
|
|
|
|
}
|