aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/zathura/wrapper.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/zathura/wrapper.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix b/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix
index 5d37b5190d0..7cd52e0c74f 100644
--- a/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix
+++ b/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix
@@ -1,21 +1,16 @@
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
-
-let
- pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
-
-in symlinkJoin {
+symlinkJoin {
name = "zathura-with-plugins-${zathura_core.version}";
- paths = with zathura_core; [ man dev out ];
+ paths = with zathura_core; [ man dev out ] ++ plugins;
- inherit plugins;
buildInputs = [ makeWrapper ];
postBuild = ''
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
- --add-flags --plugins-dir=${pluginsPath}
+ --add-flags --plugins-dir="$out/lib/zathura"
'';
meta = with lib; {
@@ -29,6 +24,6 @@ in symlinkJoin {
'';
license = licenses.zlib;
platforms = platforms.unix;
- maintainers = with maintainers; [ smironov globin ];
+ maintainers = with maintainers; [ smironov globin TethysSvensson ];
};
}