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: symlinkJoin all of plugins #96630

Merged
merged 2 commits into from Sep 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 4 additions & 9 deletions 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; {
Expand All @@ -29,6 +24,6 @@ in symlinkJoin {
'';
license = licenses.zlib;
platforms = platforms.unix;
maintainers = with maintainers; [ smironov globin ];
maintainers = with maintainers; [ smironov globin TethysSvensson ];
};
}