13 stdenvNoCC.mkDerivation {
14 pname = "cups-idprt-tspl";
18 name = "idprt_tspl_printer_linux_driver.zip"; # This is not the original name, but there was debate about whether rec or finalAttrs should be used, so I just renamed it
19 url = "https://www.idprt.com/prt_v2/files/down_file/id/283/fid/668.html"; # NOTE: This is NOT an HTML page, but a ZIP file
20 hash = "sha256-P3AKSqCh5onOv0itJayEJ6P5pmlkOwOh1OtUjg40BRw=";
41 ."${stdenvNoCC.hostPlatform.system}"
42 or (throw "cups-idprt-tspl: No prebuilt filters for system: ${stdenvNoCC.hostPlatform.system}");
46 mkdir -p $out/share/cups/model $out/lib/cups/filter
47 cp -r filter/${arch}/. $out/lib/cups/filter
48 cp -r ppd/. $out/share/cups/model
49 rm $out/share/cups/model/*.ppd~
50 chmod +x $out/lib/cups/filter/*
55 description = "CUPS drivers for TSPL-based iDPRT thermal label printers (SP210, SP310, SP320, SP320E, SP410, SP410BT, SP420, SP450, SP460BT)";
60 license = lib.licenses.unfree;
61 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
62 maintainers = with lib.maintainers; [ pandapip1 ];