Merge pull request #44909 from mnacamura/zathura
zathura: keep wrapper's WM_CLASS consistent with unwrapped binary
This commit is contained in:
commit
6fb67ca241
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, meson, ninja, makeWrapper, pkgconfig
|
{ stdenv, fetchurl, meson, ninja, makeWrapper, pkgconfig
|
||||||
, appstream-glib, desktop-file-utils, python3
|
, appstream-glib, desktop-file-utils, python3
|
||||||
, gtk, girara, gettext, libxml2
|
, gtk, girara, gettext, libxml2
|
||||||
, file, sqlite, glib, texlive, libintl, libseccomp
|
, sqlite, glib, texlive, libintl, libseccomp
|
||||||
, gtk-mac-integration, synctexSupport ? true
|
, gtk-mac-integration, synctexSupport ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -18,22 +18,19 @@ 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
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
file gtk girara libintl libseccomp
|
gtk girara libintl libseccomp
|
||||||
sqlite glib
|
sqlite glib
|
||||||
] ++ optional synctexSupport texlive.bin.core
|
] ++ optional synctexSupport texlive.bin.core
|
||||||
++ optional stdenv.isDarwin [ gtk-mac-integration ];
|
++ optional stdenv.isDarwin [ gtk-mac-integration ];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
wrapProgram "$out/bin/zathura" \
|
|
||||||
--prefix PATH ":" "${makeBinPath [ file ]}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://pwmt.org/projects/zathura/;
|
homepage = https://pwmt.org/projects/zathura/;
|
||||||
description = "A core component for zathura PDF viewer";
|
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
|
let
|
||||||
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
|
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
|
||||||
@ -6,12 +6,14 @@ 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 --add-flags --plugins-dir=${pluginsPath}
|
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
||||||
|
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||||
|
--add-flags --plugins-dir=${pluginsPath}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user