Commit Graph

23 Commits

Author SHA1 Message Date
Maximilian Bosch
c0bd479d77
zathura: improve overridability; set plugin dir through the environment
The current package setup has two issues:

* You can only access `pkgs.zathura` which is the "final" derivation,
  i.e. a wrapper. This is a problem if you want to apply a patch to
  `zathura(1)` in an overlay. To make this a bit easier, I decided to
  expose `zathuraPkgs` entirely and `zathura` is now
  `zathuraPkgs.zathuraWrapper`.

  With this change, patches can now be added like this:

  ```
  with import ./. {
    overlays = [
      (self: super: {
        zathura = super.zathura.override {
          zathura_core = super.zathuraPkgs.zathura_core.overrideAttrs (_: {
            patches = [
              ~/Projects/zathura/0001-Fix-remote-link-resolution-in-zathura.patch
            ];
          });
        };
      })
    ];
  };
  zathura
  ```

* As soon as you open another window in `zathura` from `zathura` (e.g.
  to follow a PDF-embedded link to another PDF), it currently fails
  because `--plugins-dir=` isn't passed along. This is because `zathura`
  uses `argv[0]`[1] to open another process and the GApps-wrapper inside
  `zathuraPkgs.zathura_core` does a `exec -a "$0"` which isn't the
  `bin/zathura` from the wrapper that appends `--plugins-dir=`:

  ```
  execve("/nix/var/nix/profiles/per-user/ma27/home-manager-140-link/home-path/bin/zathura", ["/nix/var/nix/profiles/per-user/ma27/home-manager-140-link/home-path/bin/zathura", "/home/ma27/Documents/Uni/Studium/Notepad/Aktuell/Index.pdf"], 0x7ffd7a4bf4b0 /* 108 vars */) = 0
  execve("/nix/store/2wjhxbgzcnn0qqdwqy0m01hw39dxwfmk-zathura-0.4.8-bin/bin/zathura", ["/nix/store/2wjhxbgzcnn0qqdwqy0m01hw39dxwfmk-zathura-0.4.8-bin/bin/zathura", "--plugins-dir=/nix/store/wcch63yzwykc9x5393dzjfdxsf80mrb8-zathura-with-plugins-0.4.8/lib/zathura", "/home/ma27/Documents/Uni/Studium/Notepad/Aktuell/Index.pdf"], 0x1442010 /* 107 vars */) = 0
  execve("/nix/store/2wjhxbgzcnn0qqdwqy0m01hw39dxwfmk-zathura-0.4.8-bin/bin/.zathura-wrapped", ["/nix/store/2wjhxbgzcnn0qqdwqy0m01hw39dxwfmk-zathura-0.4.8-bin/bin/zathura", "--plugins-dir=/nix/store/wcch63yzwykc9x5393dzjfdxsf80mrb8-zathura-with-plugins-0.4.8/lib/zathura", "/home/ma27/Documents/Uni/Studium/Notepad/Aktuell/Index.pdf"], 0x81d010 /* 108 vars */) = 0
  ```

  I figured it's way simpler to actually use the environment variable
  `ZATHURA_PLUGINS_PATH` for that purpose as the environment is
  inherited when a new process is started.

[1] 242329b534/zathura/links.c (L205-215)
2022-02-05 19:27:24 +01:00
Dmitry Kalinkin
da54555510
zathura: drop broken synctexSupport option 2019-08-01 15:05:25 -04:00
Roman Volosatovs
4afa4cda63
zathura: Add a comment about why poppler is used on Darwin 2019-05-11 23:43:00 +02:00
Roman Volosatovs
9ddd56a7e3
zathura: use poppler on Darwin by default 2019-05-11 16:03:03 +02:00
José Luis Lafuente
053d79dbf0
zathura: 0.4.1 -> 0.4.3, new features and plugin
Update to 0.4.3, compile it with more features and add CB plugin
2019-03-10 22:22:10 +01:00
Jan Malakhovski
46107a6a80 zathura: move defaults to package file 2019-02-03 15:33:34 +00:00
Nikolay Amiantov
211adbeb38 zathura: cleanup and hide zathuraCollection
Fixes #17787.
2016-08-26 03:45:58 +03:00
Alexey Shmalko
b21329e0e0 zathura: Enable synctex support
Closes #15984.
abbradar: list is not needed for lib.optional
2016-06-10 17:32:48 +03:00
Nikolay Amiantov
8b7ebaffeb replace makeSearchPath tree-wise to take care of possible multiple outputs 2016-04-13 22:09:41 +03:00
Charles Strahan
ae8c6092e7 pwmt: update packages (zathura, jumanji, girara)
This updates (and fixes) the mupdf backend for zathura, and bumps the
versions for other related packages.
2015-05-06 10:36:30 -04:00
me@vikramverma.com
e6f7910551 zathura: 0.2.9 -> 0.3.1; girara: 0.2.2 -> 0.2.3 2014-10-23 19:03:19 +02:00
Kirill Elagin
d15c34f677 zathura: mupdf plugin 2014-05-17 16:46:20 +04:00
Sergey Mironov
5b223d457e zathura: set default window-icon 2014-02-22 18:38:06 +01:00
Vladimír Čunát
161d029d7d preferLocalBuild: set to true for wrappers and fetchers 2014-02-10 21:04:17 +01:00
Rok Garbas
6aff4d5ee5 zathuraCollection: update to latest
girara -> 0.1.9
zathura-core -> 0.2.5
zathura-djvu -> 0.2.3
zathura-pdf-poppler -> 0.2.4
zathura-ps -> 0.2.2
2013-11-23 15:19:54 +01:00
Sergey Mironov
061627feed zathura: fix man pages; include .desktop icon 2013-02-28 12:08:36 +04:00
Sergey Mironov
7cd4a5b0a1 zathura: set myself as a maintainer
Conflicts:
	pkgs/applications/misc/zathura/default.nix
2013-02-28 12:07:46 +04:00
Rok Garbas
5077600d9a zathura: update to 0.2.2 (also plugins), added correct license and myself as maintainer 2013-02-23 11:39:32 +01:00
Rok Garbas
ee6f7e294e zathura: Update to 0.2.1 (also update plugins to latest) 2012-11-25 18:55:54 +01:00
Sergey Mironov
51ccf1f213 zathura: fix broken links in meta information 2012-08-16 18:33:25 +04:00
Sergey Mironov
d339184bbf zathura: version 0.1.2 with plugins
Expression handles new modular structure of zathura and adds support for djvu,
pdf and ps plugins.
2012-08-16 18:25:52 +04:00
Eelco Dolstra
4e321d8bd8 * Zathura updated to 0.0.8.4 (to fix http://hydra.nixos.org/build/1191958).
svn path=/nixpkgs/branches/kde-4.7/; revision=28108
2011-08-01 11:58:11 +00:00
Alexander Tsamutali
2cc92567a2 applications/misc/zathura: New nixbuild.
svn path=/nixpkgs/trunk/; revision=22057
2010-05-29 21:15:13 +00:00