13 pname = "lexmark-aex";
20 url = "https://downloads.lexmark.com/downloads/drivers/Lexmark-AEX-PPD-Files-1.0-01242019.amd64.deb";
21 hash = "sha256-igrJEeFLArGbncOwk/WttnWfPjOokD0/IzpJ4VSOtHk=";
33 # Needed for autoPatchelfHook.
36 # Needed for patchShebangs.
40 # Needed for autoPatchelfHook.
41 runtimeDependencies = [ (lib.getLib cups) ];
43 ppdFileCommands = [ "CommandFileFilterG2" "rerouteprintoption" ];
47 if stdenv.system == "x86_64-linux" then "lib64"
48 else if stdenv.system == "i686_linux" then "lib"
49 else throw "other platforms than i686_linux and x86_64-linux are not yet supported";
53 prefix=usr/local/Lexmark/ppd/Lexmark-AEX-PPD-Files/GlobalPPD_1.4
55 # Install raster image filter.
56 install -Dm755 "$prefix/rerouteprintoption" "$out/lib/cups/filter/rerouteprintoption"
57 patchShebangs "$out/lib/cups/filter/rerouteprintoption"
59 # Install additional binary filters.
60 for i in CommandFileFilterG2 LexHBPFilter; do
61 install -Dm755 "$prefix/${libdir}/$i" "$out/lib/cups/filter/$i"
65 install -Dm 0644 -t "$out/share/cups/model/Lexmark" "$prefix"/*.ppd
71 description = "CUPS drivers for Lexmark B2200 and MB2200 Series printers";
72 homepage = "https://support.lexmark.com/en_xm/drivers-downloads.html";
73 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
74 license = licenses.unfree;
75 maintainers = [ maintainers.tobim ];
76 platforms = [ "x86_64-linux" "i686-linux" ];