1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #176930 from onny/foo2zjs-colorfix

foo2zjs: Fix AirPrint color printing for Dell1250c
This commit is contained in:
7c6f434c 2022-06-11 07:17:17 +00:00 committed by GitHub
commit baa8afa319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 1 deletions

View file

@ -13,11 +13,15 @@ stdenv.mkDerivation rec {
patches = [
./no-hardcode-fw.diff
# Support HBPL1 printers https://www.dechifro.org/hbpl/
# Support HBPL1 printers. Updated patch based on
# https://www.dechifro.org/hbpl/
./hbpl1.patch
# Fix "Unimplemented paper code" error for hbpl1 printers
# https://github.com/mikerr/foo2zjs/pull/2
./papercode-format-fix.patch
# Fix AirPrint color printing for Dell 1250c
# See https://github.com/OpenPrinting/cups/issues/272
./dell1250c-color-fix.patch
];
makeFlags = [

View file

@ -0,0 +1,29 @@
diff --git a/PPD/Dell-1250c.ppd b/PPD/Dell-1250c.ppd
index 828ecd6..98f49e1 100644
--- a/PPD/Dell-1250c.ppd
+++ b/PPD/Dell-1250c.ppd
@@ -92,15 +92,15 @@
*FoomaticRIPOptionSetting Quality=normal: " "
*CloseUI: *Quality
-*OpenUI *ColorMode/Color Mode: PickOne
-*FoomaticRIPOption ColorMode: enum CmdLine A
-*OrderDependency: 120 AnySetup *ColorMode
-*DefaultColorMode: Monochrome
-*ColorMode Color/Color: "%% FoomaticRIPOptionSetting: ColorMode=Color"
-*FoomaticRIPOptionSetting ColorMode=Color: "-c "
-*ColorMode Monochrome/Monochrome: "%% FoomaticRIPOptionSetting: ColorMode=Monochrome"
-*FoomaticRIPOptionSetting ColorMode=Monochrome: " "
-*CloseUI: *ColorMode
+*OpenUI *ColorModel/Color Mode: PickOne
+*FoomaticRIPOption ColorModel: enum CmdLine A
+*OrderDependency: 120 AnySetup *ColorModel
+*DefaultColorModel: RGB
+*ColorModel RGB/Color: "%% FoomaticRIPOptionSetting: ColorMode=Color"
+*FoomaticRIPOptionSetting ColorModel=RGB: "-c "
+*ColorModel Gray/Monochrome: "%% FoomaticRIPOptionSetting: ColorMode=Monochrome"
+*FoomaticRIPOptionSetting ColorModel=Gray: " "
+*CloseUI: *ColorModel
*OpenUI *PageSize/Page Size: PickOne
*FoomaticRIPOption PageSize: enum CmdLine A