Merge pull request #61295 from rvolosatovs/fix/zathura
Fix Zathura on Darwin
This commit is contained in:
commit
2ddcab0d89
@ -32,15 +32,15 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ optional synctexSupport "-Dsynctex=enabled";
|
] ++ optional synctexSupport "-Dsynctex=enabled";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx
|
meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx
|
||||||
gettext makeWrapper libxml2
|
gettext makeWrapper libxml2
|
||||||
];
|
] ++ optional stdenv.isLinux appstream-glib;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk girara libintl libseccomp
|
gtk girara libintl sqlite glib file librsvg
|
||||||
sqlite glib file librsvg
|
|
||||||
] ++ optional synctexSupport texlive.bin.core
|
] ++ optional synctexSupport texlive.bin.core
|
||||||
++ optional stdenv.isDarwin [ gtk-mac-integration ];
|
++ optional stdenv.isLinux libseccomp
|
||||||
|
++ optional stdenv.isDarwin gtk-mac-integration;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://pwmt.org/projects/zathura/;
|
homepage = https://pwmt.org/projects/zathura/;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ config, pkgs
|
{ config, pkgs
|
||||||
, useMupdf ? config.zathura.useMupdf or true
|
# zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980)
|
||||||
|
, useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin)
|
||||||
, synctexSupport ? true }:
|
, synctexSupport ? true }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -21,9 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zathura_core girara mupdf cairo
|
zathura_core girara mupdf cairo
|
||||||
] ++ stdenv.lib.optional stdenv.isDarwin [
|
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
||||||
gtk-mac-integration
|
|
||||||
];
|
|
||||||
|
|
||||||
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user