Skip to content
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

Add Xerox Phaser P3250 cups driver #80202

Closed
wants to merge 3 commits into from

Conversation

brcha
Copy link
Contributor

@brcha brcha commented Feb 15, 2020

Added CUPS driver for Xeros Phaser P3250 printer.

Motivation for this change

I have a Xerox Phaser P3250dn printer and, while it can work to an extent using a generic postscript driver, advanced options (such as duplex printing) are available only with the proprietary Xerox's driver. Their driver is based on Samsung's driver, but the available samsung-unified-linux-driver doesn't support my particular printer. So I've wrapped their driver into a nix package. I've installed it on my system and the printer works as it should.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Added CUPS driver for Xerox Phaser P3250 printer.
@@ -1067,8 +1067,8 @@
githubId = 37037;
name = "Filip Brcic";
keys = [{
longkeyid = "rsa2048/0x0123456789ABCDEF";
fingerprint = "AAAA BBBB CCCC DDDD EEEE FFFF 0000 1111 2222 3333";
longkeyid = "rsa4096/0x96577BD3C105EDA4";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash this commit with the first one and make sure that it is signed with this key. Note that adding keys to the maintainer record is optional.

GLOBIGNORE=*.so
for exe in $out/lib/cups/**/*; do
echo "Patching $exe"
patchelf \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually suggest people to try autoPatchelfHook instead of manual calls to patchelf.


meta = with stdenv.lib; {
description = "Xerox's Linux printing driver for Phaser P3250; includes binaries without source code";
homepage = http://www.xerox.com/;
Copy link
Member

@veprbl veprbl Apr 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
homepage = http://www.xerox.com/;
homepage = "https://www.support.xerox.com/support/phaser-3250/file-download/enus.html?contentId=102275";

description = "Xerox's Linux printing driver for Phaser P3250; includes binaries without source code";
homepage = http://www.xerox.com/;
license = licenses.unfree;
platforms = platforms.linux;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
platforms = platforms.linux;
platforms = [ "i686-linux" "x86_64-linux" ];

brcha = {
email = "brcha@yandex.com";
github = "brcha";
githubId = 37037;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
githubId = 37037;
githubId = 37038;

@stale
Copy link

stale bot commented Nov 20, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 20, 2020
@SuperSandro2000
Copy link
Member

@brcha Can you address the review comments?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 23, 2020
@stale
Copy link

stale bot commented Jun 3, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2021
@doronbehar
Copy link
Contributor

Closed due to no response from OP.

@doronbehar doronbehar closed this Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants