pkgs/tmx-cups-ppd: init at 2.0.2.101

This commit is contained in:
Infinidoge 2024-09-29 00:51:39 -04:00
parent e1f0179e3b
commit a3346d7db5
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 37 additions and 0 deletions

View file

@ -11,4 +11,5 @@
unbted = pkgs.callPackage ./unbted.nix { }; unbted = pkgs.callPackage ./unbted.nix { };
bytecode-viewer = pkgs.callPackage ./bytecode-viewer.nix { }; bytecode-viewer = pkgs.callPackage ./bytecode-viewer.nix { };
unmap = pkgs.callPackage ./unmap.nix { }; unmap = pkgs.callPackage ./unmap.nix { };
tmx-cups-ppd = pkgs.callPackage ./tmx-cups-ppd.nix { };
} }

36
pkgs/tmx-cups-ppd.nix Normal file
View file

@ -0,0 +1,36 @@
{ stdenv
, fetchurl
, bintools
, cups
, autoPatchelfHook
}:
stdenv.mkDerivation rec {
name = "tmx-cups-ppd";
version = "2.0.2.101";
src = fetchurl {
url = "https://ftp.epson.com/drivers/pos/tmx-cups-${version}.tar.gz";
sha256 = "sha256-8WA6Q5z9//UJj20VHOsPA/nCCd50CcaHRVArtmTjeiQ=";
};
buildInputs = [ bintools cups autoPatchelfHook ];
buildPhase = ''
ar p filter/tmx-cups_*_amd64.deb data.tar.gz \
| tar zxf - --wildcards './usr/lib/cups/filter/*'
'';
installPhase = ''
mkdir -p $out/share/cups/model/
mkdir -p $out/lib/cups/filter/
cp ppd/*.ppd.gz $out/share/cups/model/
cp usr/lib/cups/filter/* $out/lib/cups/filter/
'';
meta = {
homepage = "https://epson.com/Support/Point-of-Sale/Thermal-Printers/Epson-TM-m30-Series/s/SPT_C31CE95011";
description = "CUPS PPD files and filters for EPSON tmx thermal printers";
};
}