xp-pen-deco-01-v2-driver: 3.2.3.230215-1 -> 3.4.9-231023

This commit is contained in:
RadovanSk 2023-11-15 22:26:02 +01:00
parent e44462d602
commit 12afc8f19e

View File

@ -21,12 +21,12 @@ let
in
stdenv.mkDerivation rec {
pname = "xp-pen-deco-01-v2-driver";
version = "3.2.3.230215-1";
version = "3.4.9-231023";
src = fetchzip {
url = "https://download01.xp-pen.com/file/2023/03/XPPen-pentablet-${version}.x86_64.tar.gz";
url = "https://www.xp-pen.com/download/file/id/1936/pid/440/ext/gz.html#.tar.gz";
name = "xp-pen-deco-01-v2-driver-${version}.tar.gz";
sha256 = "sha256-CV4ZaGCFFcfy2J0O8leYgcyzFVwJQFQJsShOv9B7jfI=";
sha256 = "sha256-A/dv6DpelH0NHjlGj32tKv37S+9q3F8cYByiYlMuqLg=";
};
nativeBuildInputs = [
@ -56,16 +56,16 @@ stdenv.mkDerivation rec {
runHook preInstall
mkdir -p $out/{opt,bin}
cp -r App/usr/lib/pentablet/{pentablet,resource.rcc,conf} $out/opt
chmod +x $out/opt/pentablet
cp -r App/usr/lib/pentablet/{PenTablet,resource.rcc,conf} $out/opt
chmod +x $out/opt/PenTablet
cp -r App/lib $out/lib
sed -i 's#usr/lib/pentablet#${dataDir}#g' $out/opt/pentablet
sed -i 's#usr/lib/pentablet#${dataDir}#g' $out/opt/PenTablet
runHook postInstall
'';
postFixup = ''
makeWrapper $out/opt/pentablet $out/bin/xp-pen-deco-01-v2-driver \
makeWrapper $out/opt/PenTablet $out/bin/xp-pen-deco-01-v2-driver \
"''${qtWrapperArgs[@]}" \
--run 'if [ "$EUID" -ne 0 ]; then echo "Please run as root."; exit 1; fi' \
--run 'if [ ! -d /${dataDir} ]; then mkdir -p /${dataDir}; cp -r '$out'/opt/conf /${dataDir}; chmod u+w -R /${dataDir}; fi'
@ -80,4 +80,3 @@ stdenv.mkDerivation rec {
license = licenses.unfree;
};
}