From 39e12e13c4dbd894269e63afc0edbcadeebac04a Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 27 Aug 2009 23:16:09 +0000 Subject: [PATCH] cupsd: add bindirCmds so that you can test other backends easier. svn path=/nixos/trunk/; revision=16879 --- modules/services/printing/cupsd.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/services/printing/cupsd.nix b/modules/services/printing/cupsd.nix index 4f2bffe7773d..63c4d3b1df4c 100644 --- a/modules/services/printing/cupsd.nix +++ b/modules/services/printing/cupsd.nix @@ -15,6 +15,13 @@ let "; }; + bindirCmds = mkOption { + default = ""; + description = " + add commands adding additional symlinks to the bindir such as bjnp + "; + }; + }; }; }; @@ -31,6 +38,7 @@ let modprobe = config.system.sbin.modprobe; + cfg = config.services.printing; # Here we can enable additional backends, filters, etc. that are not # part of CUPS itself, e.g. the SMB backend is part of Samba. Since @@ -56,6 +64,7 @@ let ensureDir $out/lib/cups/filter ln -s ${cups}/lib/cups/filter/* $out/lib/cups/filter/ ln -s ${pkgs.ghostscript}/lib/cups/filter/* $out/lib/cups/filter/ + ${cfg.bindirCmds} ''; # */