zathura: wrap binary in the wrapper
This commit is contained in:
parent
94c6f1ba0e
commit
a5a5d5c45d
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, meson, ninja, makeWrapper, pkgconfig
|
||||
, appstream-glib, desktop-file-utils, python3
|
||||
, gtk, girara, gettext, libxml2
|
||||
, file, sqlite, glib, texlive, libintl, libseccomp
|
||||
, sqlite, glib, texlive, libintl, libseccomp
|
||||
, gtk-mac-integration, synctexSupport ? true
|
||||
}:
|
||||
|
||||
@ -24,16 +24,11 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
file gtk girara libintl libseccomp
|
||||
gtk girara libintl libseccomp
|
||||
sqlite glib
|
||||
] ++ optional synctexSupport texlive.bin.core
|
||||
++ optional stdenv.isDarwin [ gtk-mac-integration ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/zathura" \
|
||||
--prefix PATH ":" "${makeBinPath [ file ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://pwmt.org/projects/zathura/;
|
||||
description = "A core component for zathura PDF viewer";
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ symlinkJoin, lib, makeWrapper, zathura_core, plugins ? [] }:
|
||||
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
|
||||
|
||||
let
|
||||
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
|
||||
@ -11,7 +11,9 @@ in symlinkJoin {
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/zathura --add-flags --plugins-dir=${pluginsPath}
|
||||
wrapProgram $out/bin/zathura \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||
--add-flags --plugins-dir=${pluginsPath}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
x
Reference in New Issue
Block a user