Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 mkDerivation, 5 fetchzip, 6 autoPatchelfHook, 7 libusb1, 8 libX11, 9 libXtst, 10 qtbase, 11 libglvnd, 12}: 13 14mkDerivation rec { 15 pname = "xp-pen-g430-driver"; 16 version = "1.2.13.1"; 17 18 src = 19 fetchzip { 20 url = "https://download01.xp-pen.com/file/2020/04/Linux_Pentablet_V${version}.tar.gz(20200428).zip"; 21 sha256 = "1r423hcpi26v82pzl59br1zw5vablikclqsy6mcqi0v5p84hfrdd"; 22 } 23 + /Linux_Pentablet_V1.2.13.1.tar.gz; 24 25 nativeBuildInputs = [ 26 autoPatchelfHook 27 ]; 28 29 buildInputs = [ 30 libusb1 31 libX11 32 libXtst 33 qtbase 34 libglvnd 35 (lib.getLib stdenv.cc.cc) 36 ]; 37 38 installPhase = '' 39 mkdir -p $out/bin 40 cp Pentablet_Driver $out/bin/pentablet-driver 41 cp config.xml $out/bin/config.xml 42 ''; 43 44 meta = with lib; { 45 homepage = "https://www.xp-pen.com/download-46.html"; 46 description = "Driver for XP-PEN Pentablet drawing tablets"; 47 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 48 license = licenses.unfree; 49 platforms = [ "x86_64-linux" ]; 50 maintainers = [ ]; 51 }; 52}