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

Zathura packages are organized confusingly #17787

Closed
langston-barrett opened this issue Aug 17, 2016 · 5 comments
Closed

Zathura packages are organized confusingly #17787

langston-barrett opened this issue Aug 17, 2016 · 5 comments

Comments

@langston-barrett
Copy link
Contributor

langston-barrett commented Aug 17, 2016

Issue description

With the following in my configuration.nix:

  environment.systemPackages = with pkgs; [
    zathura
    zathuraCollection.zathura_core
    zathuraCollection.zathura_pdf_poppler
  ];

When I launch zathura:

 zathura my-doc.pdf

I get the following error:

error: could not open plugin directory: /nix/store/2kr6n75x8yxqvnfgf75jr1z0lrzzp6y0-zathura-core-0.3.6/lib/zathura
error: Unknown file type: 'application/pdf'

And indeed, that directory doesn't exist:

/etc/nixpkgs > ls /nix/store/2kr6n75x8yxqvnfgf75jr1z0lrzzp6y0-zathura-core-0.3.6/lib 
pkgconfig
/etc/nixpkgs > ls /nix/store/2kr6n75x8yxqvnfgf75jr1z0lrzzp6y0-zathura-core-0.3.6/lib/pkgconfig
zathura.pc

However, when I install zathura with

nix-env -i zathura

everything works as expected.

Steps to reproduce

Install zathura with above config, try to open a PDF

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
16.09.git.5a501bd (Flounder)
  • Nix version: (run nix-env --version)
nix-env (Nix) 1.11.2
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
"16.09.git.5a501bd"
@abbradar
Copy link
Member

You shouldn't install plugins into your system path. Instead, install just zathura -- it's a wrapper that installs zathura_djvu, zathura_ps and zathura_pdf_mupdf (or zathura_pdf_poppler if you pass useMupdf = false to it). Unfortunately we still haven't done so that you can choose plugins more granularly, but it can be trivially implemented if needed.

@langston-barrett
Copy link
Contributor Author

@abbradar Thanks for the clarification. Is there a way we could make this more readily understood for users?

@abbradar
Copy link
Member

Hmm, I don't have much ideas. Maybe renaming zathuraCollection somehow would help?

@langston-barrett langston-barrett changed the title Zathura "could not open plugin directory" Zathura packages are organized confusingly Aug 19, 2016
@rasendubi
Copy link
Member

rasendubi commented Aug 21, 2016

I must say I haven't had an issue with Zathura. I've just installed zathura and expected it to work -- that's what actually happened.

We can change zathura's name to zathura-with-plugins (similar to rxvt-unicode-with-xxx and some other packages). Don't change attribute path, though.

@the-kenny
Copy link
Contributor

Is there a reason to keep zathuraCollection in all-packages.nix at all? Sounds like an implementation detail to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants