zathura: keep wrapper's WM_CLASS consistent with wrapped binary

This commit is contained in:
Mitsuhiro Nakamura 2018-08-12 02:04:06 +09:00
parent a5a5d5c45d
commit 7bf3f0911f
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
sha256 = "1znr3psqda06xklzj8mn452w908llapcg1rj468jwpg0wzv6pxfn"; sha256 = "1znr3psqda06xklzj8mn452w908llapcg1rj468jwpg0wzv6pxfn";
}; };
outputs = [ "bin" "man" "dev" "out" ];
nativeBuildInputs = [ nativeBuildInputs = [
meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx
gettext makeWrapper libxml2 gettext makeWrapper libxml2

View File

@ -6,12 +6,12 @@ let
in symlinkJoin { in symlinkJoin {
name = "zathura-with-plugins-${zathura_core.version}"; name = "zathura-with-plugins-${zathura_core.version}";
paths = [ zathura_core ]; paths = with zathura_core; [ man dev out ];
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
postBuild = '' postBuild = ''
wrapProgram $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=${pluginsPath}
''; '';