2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv, lib, meson, ninja, fetchurl, cairo
|
2020-11-15 13:44:38 +00:00
|
|
|
, girara
|
|
|
|
, gtk-mac-integration
|
|
|
|
, gumbo
|
|
|
|
, jbig2dec
|
|
|
|
, libjpeg
|
|
|
|
, mupdf
|
2021-03-19 17:17:44 +00:00
|
|
|
, openjpeg
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-11-15 13:44:38 +00:00
|
|
|
, zathura_core
|
2022-09-09 14:08:57 +00:00
|
|
|
, tesseract
|
|
|
|
, leptonica
|
|
|
|
, mujs
|
2023-10-19 13:55:26 +00:00
|
|
|
, gitUpdater
|
2020-11-15 13:44:38 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "zathura-pdf-mupdf";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-+YKgHWUj+iVmk4EYTAamJe2/15YcvbBxHcz9ucQCrC8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-11-15 13:44:38 +00:00
|
|
|
cairo
|
|
|
|
girara
|
|
|
|
gumbo
|
|
|
|
jbig2dec
|
|
|
|
libjpeg
|
|
|
|
mupdf
|
2021-03-19 17:17:44 +00:00
|
|
|
openjpeg
|
2020-11-15 13:44:38 +00:00
|
|
|
zathura_core
|
2022-09-09 14:08:57 +00:00
|
|
|
tesseract
|
|
|
|
leptonica
|
|
|
|
mujs
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
|
|
|
|
|
|
|
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/^mupdfthird =/d' -e 's/, mupdfthird//g' meson.build
|
|
|
|
'';
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://git.pwmt.org/pwmt/zathura-pdf-mupdf.git";
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://pwmt.org/projects/zathura-pdf-mupdf/";
|
|
|
|
description = "A zathura PDF plugin (mupdf)";
|
|
|
|
longDescription = ''
|
|
|
|
The zathura-pdf-mupdf plugin adds PDF support to zathura by
|
|
|
|
using the mupdf rendering library.
|
|
|
|
'';
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.unix;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|