zathura: symlinkJoin all of plugins (#96630)
* zathura: symlinkJoin all of plugins * zathura: Add TethysSvensson as a maintainer Co-authored-by: Matthieu Coudron <mattator@gmail.com>
This commit is contained in:
parent
79ff0a1127
commit
f57a658d8e
@ -1,21 +1,16 @@
|
|||||||
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
|
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
|
||||||
|
symlinkJoin {
|
||||||
let
|
|
||||||
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
|
|
||||||
|
|
||||||
in symlinkJoin {
|
|
||||||
name = "zathura-with-plugins-${zathura_core.version}";
|
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 ];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
||||||
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||||
--add-flags --plugins-dir=${pluginsPath}
|
--add-flags --plugins-dir="$out/lib/zathura"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -29,6 +24,6 @@ in symlinkJoin {
|
|||||||
'';
|
'';
|
||||||
license = licenses.zlib;
|
license = licenses.zlib;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ smironov globin ];
|
maintainers = with maintainers; [ smironov globin TethysSvensson ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user