mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 01:21:11 +00:00
zathura: wrap zathura-sandbox
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
zathura_cb
|
||||
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
|
||||
],
|
||||
stdenv,
|
||||
}:
|
||||
symlinkJoin {
|
||||
inherit (zathura_core) version;
|
||||
@@ -36,7 +37,12 @@ symlinkJoin {
|
||||
let
|
||||
fishCompletion = "share/fish/vendor_completions.d/zathura.fish";
|
||||
in
|
||||
''
|
||||
(lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
makeWrapper ${zathura_core.bin}/bin/zathura-sandbox $out/bin/zathura-sandbox \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||
--prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
|
||||
'')
|
||||
+ ''
|
||||
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||
--prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
|
||||
@@ -46,11 +52,11 @@ symlinkJoin {
|
||||
# so we need to fix the path to reference $out instead.
|
||||
rm "$out/${fishCompletion}"
|
||||
substitute "${zathura_core.out}/${fishCompletion}" "$out/${fishCompletion}" \
|
||||
--replace "${zathura_core.out}" "$out"
|
||||
--replace-fail "${zathura_core.out}" "$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pwmt.org/projects/zathura/";
|
||||
meta = {
|
||||
homepage = "https://pwmt.org/projects/zathura";
|
||||
description = "Highly customizable and functional PDF viewer";
|
||||
longDescription = ''
|
||||
Zathura is a highly customizable and functional PDF viewer based on the
|
||||
@@ -58,9 +64,9 @@ symlinkJoin {
|
||||
is an application that provides a minimalistic and space saving interface
|
||||
as well as an easy usage that mainly focuses on keyboard interaction.
|
||||
'';
|
||||
license = licenses.zlib;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [
|
||||
license = lib.licenses.zlib;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [
|
||||
smironov
|
||||
globin
|
||||
TethysSvensson
|
||||
|
||||
Reference in New Issue
Block a user