mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
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
|
||||
, 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
|
||||
}:
|
||||
|
||||
|
@ -18,22 +18,19 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1znr3psqda06xklzj8mn452w908llapcg1rj468jwpg0wzv6pxfn";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "man" "dev" "out" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx
|
||||
gettext makeWrapper libxml2
|
||||
];
|
||||
|
||||
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;
|
||||
|
@ -6,12 +6,14 @@ let
|
|||
in symlinkJoin {
|
||||
name = "zathura-with-plugins-${zathura_core.version}";
|
||||
|
||||
paths = [ zathura_core ];
|
||||
paths = with zathura_core; [ man dev out ];
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
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; {
|
||||
|
|
Loading…
Reference in a new issue