mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
39 lines
969 B
Nix
39 lines
969 B
Nix
{ lib, 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 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 ];
|
|
};
|
|
}
|