nixpkgs/pkgs
Michael Weiss ea23f8bb07 cups service: Automatically detect Gutenprint in drivers
Additional CUPS drivers can be added via "services.printing.drivers" but
Gutenprint was an exception. It was possible to add a Gutenprint
derivation to that list and it would work at first but unlike the other
drivers Gutenprint requires a script to be run after each update or any
attempt to print something would simply fail and an error would show up
in the jobs queue (http://localhost:631/jobs/):
"The PPD version (5.2.11) is not compatible with Gutenprint 5.2.13.
Please run
`/nix/store/7762kpyhfkcgmr3q81v1bbyy0bjhym80-gutenprint-5.2.13/sbin/cups-genppdupdate'
as administrator."
This is due to state in "/var/lib/cups/ppd" and one would need to run
"/nix/store/.../bin/cups-genppdupdate -p /var/lib/cups/ppd" manually.
The alternative was to enable the following option:
"services.printing.gutenprint" but this had two disadvantages:
1) It is an exception that one could be unaware of or that could
potentially cause some confusion.
2) One couldn't use a customized Gutenprint derivation in
"services.printing.drivers" but would instead have to overwrite
"pkgs.gutenprint".

This new approach simply detects a Gutenprint derivation in
"services.printing.gutenprint" by checking if the meta set of a
derivation contains "isGutenprint = true". Therefore no special
exception for Gutenprint would be required and it could easily be
applied to other drivers if they would require such a script to be run.
2017-08-29 05:25:12 +04:00
..
applications Merge pull request #28580 from kiloreux/xpdf 2017-08-28 22:08:48 +01:00
build-support mirrors: update apache and cpan mirrors 2017-08-24 04:22:07 +00:00
common-updater
data wireless-regdb: 2016-06-16 -> 2017.03.07 2017-08-28 00:54:43 +02:00
desktops maxx: fix evaluation 2017-08-27 17:06:46 +02:00
development uri: 2016-09-04 -> 2017-07-16 2017-08-29 00:01:11 +02:00
games snake4: don't install with setuid 2017-08-29 00:34:33 +02:00
misc cups service: Automatically detect Gutenprint in drivers 2017-08-29 05:25:12 +04:00
os-specific linux_rpi: 1.20170515 -> 1.20170811 2017-08-29 02:37:52 +03:00
servers darkhttpd: minor cleanups 2017-08-28 21:19:46 +08:00
shells Merge commit '3b29468313bc8604fe8f85c8d9316fd276d3985c' into HEAD 2017-08-21 04:44:40 +02:00
stdenv cc-wrapper: Remove unused params 2017-08-21 18:40:41 -04:00
test macos-sierra-shared: Make live code and add to nascent Darwin channel 2017-07-31 21:28:18 -04:00
tools cuneiform: maintain 2017-08-28 23:13:57 +02:00
top-level Merge pull request #28580 from kiloreux/xpdf 2017-08-28 22:08:48 +01:00