New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cnijfilter-common: add generic build method for Canon printer drivers (help needed) #87083
base: master
Are you sure you want to change the base?
Conversation
b65d189
to
bc55208
Compare
Right now this fails for me:
|
Yes, I see the same thing. Oddly, if I build step-by-step in |
How exactly do you build step by step? (I'd like to reproduce)
Oh thanks, that's a good hint :) maybe it's possible to make each printer model its own derivation? |
My attempt:
Any idea what I'm doing wrong? |
I usually do it like this: From the nixpkgs directory:
|
I think initially we should just replicate what the Gentoo overlay does and have packages supporting multiple printers (since most users will just get it from Hydra anyway). We should also have some nixos module that selects the appropriate package for your printer. Then for v2, we could move to the approach suggested here where the common part is built separately and each printer has its own package. |
The error must be that some environment variable is not set. The correct library name should be e.g. |
bc55208
to
43e552a
Compare
Excellent, thanks for your help. |
I ported the ebuilds for the other driver versions, sadly most of them don't build yet. |
@terlar does it work for you on this branch? |
I marked this as stale due to inactivity. → More info |
I marked this as stale due to inactivity. → More info |
Motivation for this change
Older Canon printers need a different driver version for each printer. Currently we have a couple of versions implemented by hand, but it would be much better to have a generic implementation that can build any version. This package is a port of a Gentoo solution found here.
Things done
I've ported the generic framework and mostly got it working. I've also added an instance of a particular driver version. It would be great if someone could help me out with finishing it.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)