nixpkgs/pkgs/applications
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
..
accessibility svkbd: 0.4 -> 0.4.1 2022-01-11 21:29:14 +01:00
audio munt: 2.5.0 -> 2.5.3 2022-01-31 22:40:30 -03:00
backup vorta: 0.8.2 -> 0.8.3 2022-01-28 00:55:16 +00:00
blockchains ergo: 4.0.16.2 -> 4.0.20.1 2022-01-31 10:05:12 -08:00
display-managers epoxy: rename to libepoxy 2021-11-11 05:55:32 +01:00
editors Merge pull request #155061 from piegamesde/gnome 2022-02-01 20:53:10 +01:00
finance/odoo odoo: update dependencies 2021-11-30 18:53:00 -08:00
gis grass: fix build on darwin 2022-01-26 07:44:26 -05:00
graphics Merge pull request #155159 from sheepforce/pixinsight 2022-02-01 15:41:22 +01:00
kde fix MTP support on KDE Plasma and Dolphin (#155405) 2022-01-27 11:29:32 +08:00
logging/humioctl
misc zathura: improve overridability; set plugin dir through the environment 2022-02-05 19:27:24 +01:00
networking Merge pull request #157535 from ymatsiuk/ymatsiuk/fix-slack-update 2022-02-01 13:26:54 +01:00
office Merge pull request #155061 from piegamesde/gnome 2022-02-01 20:53:10 +01:00
plasma-mobile plasma-settings: init at 21.08 2021-12-03 17:26:31 -05:00
printing/pappl pappl: 1.0.3 -> 1.1.0 2021-12-25 10:40:23 -08:00
qubes/qubes-core-vchan-xen
radio gnuradio: 3.10.0.0 -> 3.10.1.0 2022-01-29 21:54:25 +02:00
science Merge pull request #155061 from piegamesde/gnome 2022-02-01 20:53:10 +01:00
search pkgs/applications: rename name to pname&version part 2 2021-11-07 14:53:06 +01:00
system monitor: 0.11.0 -> 0.12.0 2022-01-18 22:06:43 +08:00
terminal-emulators Merge pull request #156860 from Atemu/mlterm-tag-name 2022-01-26 22:59:53 +08:00
version-management Merge pull request #157681 from qowoz/gh 2022-02-01 13:31:29 +01:00
video Merge pull request #156512 from B4dM4n/plex-media-player-update 2022-01-31 23:33:45 +08:00
virtualization cloud-hypervisor: 20.2 -> 21.0 2022-01-31 17:16:29 +00:00
window-managers Merge pull request #157593 from AndersonTorres/new-misc 2022-01-31 23:11:37 -03:00