Re: [Nix-dev] Gutenprint cups drivers

2014-06-22 Thread Marc Weber
This chonfiguration works for me:

  cupsd_1_7 = {
enable = true;
gutenprintPackage = pkgs.gutenprintCVS;
  };

source:
https://github.com/MarcWeber/nixpkgs/tree/experimental/cups-1.6-and-1.7

nixos wiki should still contain some hints about how to use topgit
topic branches efficiently.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Gutenprint cups drivers

2014-06-02 Thread Jonas Hörsch
Hi Marc, (and others),

Thanks for the mails you sent me in reply to my support request [1] in
February, I tried to follow them as good as I could.

But, since there was a pull request, which allegedly would enable me to
use the new gutenprint necessary for my Canon PIXMA MG5200 printer, I
had settled for waiting until it was to be merged. Well, it seems that's
not going to happen anytime soon.

 https://github.com/NixOS/nixpkgs/pull/1120/

So I tried to build cups/gutenprint from that pull request on my own.
but, when I merge it into a current channel-nixos branch of mine,
nix doesn't finish the building the system configuration... step and
instead just hogs more and more memory, slowing the system to a grind.

I tried cherry-picking the important commits over to another branch, but
the commit history has so many cross-merges, that I can't make heads nor
tails of it.

What are you using at the moment?

Thanks,
Jonas

Footnotes:

[1] http://lists.science.uu.nl/pipermail/nix-dev/2014-February/012478.html


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Gutenprint cups drivers

2014-02-01 Thread Marc Weber
Excerpts from coroa's message of Sat Feb 01 22:37:10 +0100 2014:
 there are the packages gutenprint and gutenprintBin.
Bin in the past contained more recent drivers.

My branches (github.com/MarcWeber) know how to compile gutenprint from
source. However to use eg canon pixma you also need current cupsd (based
on PDF transformations rather than PS) - but I only did enough work to
make my printers work - eg printing sample pages does not work yet with
newest cupsd.

The reason I had to package CSV version is no longer valid for me,
current source distribution contains everything I need - however
building was a lot of fun (work) .. so I still keep it around.
(I also created a pull request for that reason).

In order to use gutenprint you should also create ppd files.
(in my branches [1] they'll get symlinked to /run/current-system/sw/ppds/*)
and they cane be accessed by gutenprint.ppds (-A attr path)

 Unable to find Gutenprint driver named Canon PIXMA MG5200!.
And I'm getting such error recently, too (with Canon PIXMA MP980 for
instance).

No idea when /why it broke yet. I'm about debugging it - its not a high
priority - I don't print much.

cupsd.conf setting
LogLevel debug2

might help.

Marc Weber

[1] github.com/MarcWeber/nixpkgs branch experimental/cups-1.6-and-1.7
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Gutenprint cups drivers

2014-02-01 Thread Marc Weber
For whatever reason it happened that I symlinked gutenprintCVS ppds but
was using gutenprint filters ..

Patch updated:
https://github.com/NixOS/nixpkgs/pull/1120/

This should be pretty much all you need

  printing = {
enable = true;
gutenprintPackage = config.services.printing.cupsPackages.gutenprintCVS; // 
or .gutenprint
  };


See description:

  gutenprintPackage = mkOption {
default = null;
description = ''
  Enable gutenprint by setting this options to 
config.services.printing.cupsPackages.gutenprint(CVS).
  Unless this setting is null (default) gutenprint.ppds will be symlinked 
to /run/current-system/sw/ppds/.
  When installing a new printer in cupsd web interface select the matching 
ppd file.
'';
  };

There might still be style issues (depending on view point) with this
patch .. but works for me.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Gutenprint cups drivers

2014-02-01 Thread Marc Weber
I forgot to say that the only reason why you may need my patch (newer
cupsd) is that the old cups version stopped printing at 30% of a page
randomly - the rest of the page was blank.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev