1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
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 Remove top-level pyqt4 2016-08-14 12:38:01 +02:00
ghostscript Merge remote-tracking branch 'upstream/master' into HEAD 2017-08-14 09:34:10 +02:00
gnash gnash: init at 0.8.11-2017-03-08 2017-06-19 15:08:57 +02:00
gnuk treewide: Add lots of meta.platforms 2016-08-02 21:42:43 +03:00
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 long-shebang: 1.1.0 -> 1.2.0 2017-02-23 18:27:12 -05:00
mnemonicode mnemonicode: fix name 2016-05-19 16:19:18 -04:00
mxt-app mxt-app:1.26 -> 1.27 2017-03-23 20:15:14 -05:00
my-env user-local config.nix path fixed in docs 2017-05-27 13:38:15 +03:00
phabricator treewide: Add lots of platforms to packages with no meta 2016-08-02 21:17:44 +03:00
sailsd sailsd: fix darwin build 2016-08-16 19:25:45 +00:00
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 Python: more evaluation fixups. 2016-10-14 00:03:12 +02:00
sound-of-sorting sound-of-sorting: 0.6.5 -> 20150721 (#23549) 2017-03-06 15:24:40 +01:00
source-and-tags
talkfilters talkfilters: disable format hardening 2016-08-03 20:28:05 +00:00
themes albatross: link to github homepage 2017-08-17 15:04:41 -07:00
tw-rs tw-rs: init at 0.1.26 2017-05-06 08:14:49 +01:00
uboot pkgs: refactor needless quoting of homepage meta attribute (#27809) 2017-08-01 22:03:30 +02:00
urbit urbit: 2016-06-02 -> 0.4 (#20922) 2016-12-13 15:43:02 +01:00
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 xosd: supports darwin 2017-04-23 18:08:41 -05:00