From 0752ba3568a1893762c52a7882a7f48e65439e3c Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 8 Jun 2022 19:11:18 +0200 Subject: [PATCH] foo2zjs: Fix AirPrint color printing for Dell1250c --- pkgs/misc/drivers/foo2zjs/default.nix | 6 +++++- pkgs/misc/drivers/foo2zjs/dell1250c-color-fix.patch | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 pkgs/misc/drivers/foo2zjs/dell1250c-color-fix.patch diff --git a/pkgs/misc/drivers/foo2zjs/default.nix b/pkgs/misc/drivers/foo2zjs/default.nix index ca50ad2f1cc9..c1d38656b267 100644 --- a/pkgs/misc/drivers/foo2zjs/default.nix +++ b/pkgs/misc/drivers/foo2zjs/default.nix @@ -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 = [ diff --git a/pkgs/misc/drivers/foo2zjs/dell1250c-color-fix.patch b/pkgs/misc/drivers/foo2zjs/dell1250c-color-fix.patch new file mode 100644 index 000000000000..74a03b8abed6 --- /dev/null +++ b/pkgs/misc/drivers/foo2zjs/dell1250c-color-fix.patch @@ -0,0 +1,13 @@ +diff --git a/PPD/Dell-1250c.ppd b/PPD/Dell-1250c.ppd +index 828ecd6..7e78ce4 100644 +--- a/PPD/Dell-1250c.ppd ++++ b/PPD/Dell-1250c.ppd +@@ -95,7 +95,7 @@ + *OpenUI *ColorMode/Color Mode: PickOne + *FoomaticRIPOption ColorMode: enum CmdLine A + *OrderDependency: 120 AnySetup *ColorMode +-*DefaultColorMode: Monochrome ++*DefaultColorMode: Color + *ColorMode Color/Color: "%% FoomaticRIPOptionSetting: ColorMode=Color" + *FoomaticRIPOptionSetting ColorMode=Color: "-c " + *ColorMode Monochrome/Monochrome: "%% FoomaticRIPOptionSetting: ColorMode=Monochrome"