nixpkgs/pkgs/misc
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
..
apulse pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
base16 pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
beep
cups pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
drivers cups service: Automatically detect Gutenprint in drivers 2017-08-29 05:25:12 +04:00
emulators wine-mono: 4.7.0 -> 4.7.1 2017-08-28 18:02:05 -07:00
foldingathome
frescobaldi
ghostscript Merge remote-tracking branch 'upstream/master' into HEAD 2017-08-14 09:34:10 +02:00
gnash
gnuk
jackaudio pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
lilypond lilypond-unstable: 2.19.24 -> 2.19.65 2017-08-28 19:55:42 +00:00
logging/beats elk: 5.4.2 -> 5.5.2 2017-08-23 01:58:12 +02:00
long-shebang
mnemonicode
mxt-app
my-env
phabricator
sailsd
screensavers xssproxy: init at 1.0.0 2017-08-28 04:03:43 -04:00
seafile-shared seafile-client: 5.0.7 -> 6.1.0 2017-08-09 19:53:05 +02:00
solfege
sound-of-sorting
source-and-tags
talkfilters
themes albatross: link to github homepage 2017-08-17 15:04:41 -07:00
tw-rs
uboot pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
urbit
vim-plugins vim-yapf: fix evaluation 2017-07-28 11:25:17 +02:00
vscode-extensions vscode-with-extension: improvements 2017-08-23 21:31:57 -04:00
xosd