nixpkgs/pkgs/applications/misc/zathura/pdf-mupdf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-26 18:02:58 +00:00
{
stdenv,
lib,
meson,
ninja,
fetchurl,
cairo,
girara,
gtk-mac-integration,
gumbo,
jbig2dec,
libjpeg,
mupdf,
openjpeg,
pkg-config,
zathura_core,
tesseract,
leptonica,
mujs,
gitUpdater,
}:
2014-05-17 12:16:50 +00:00
stdenv.mkDerivation rec {
2024-05-26 17:48:18 +00:00
version = "0.4.2";
pname = "zathura-pdf-mupdf";
2014-05-17 12:16:50 +00:00
src = fetchurl {
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
2024-05-26 17:48:18 +00:00
hash = "sha256-fFC+z9mJX9ccExsV336Ut+zJJa8UdfUz/qVp9YgcnhM=";
2014-05-17 12:16:50 +00:00
};
2024-05-26 18:02:58 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
];
2018-02-14 19:52:15 +00:00
buildInputs = [
cairo
girara
gumbo
jbig2dec
libjpeg
mupdf
openjpeg
zathura_core
tesseract
leptonica
mujs
2019-03-03 21:29:52 +00:00
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
2018-02-14 19:52:15 +00:00
2024-05-26 18:02:58 +00:00
PKG_CONFIG_ZATHURA_PLUGINDIR = "lib/zathura";
2014-05-17 12:16:50 +00:00
postPatch = ''
sed -i -e '/^mupdfthird =/d' -e 's/, mupdfthird//g' meson.build
'';
2024-05-26 18:02:58 +00:00
passthru.updateScript = gitUpdater { url = "https://git.pwmt.org/pwmt/zathura-pdf-mupdf.git"; };
meta = with lib; {
homepage = "https://pwmt.org/projects/zathura-pdf-mupdf/";
description = "Zathura PDF plugin (mupdf)";
2014-05-17 12:16:50 +00:00
longDescription = ''
The zathura-pdf-mupdf plugin adds PDF support to zathura by
using the mupdf rendering library.
'';
license = licenses.zlib;
2018-02-14 19:52:15 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ ];
2014-05-17 12:16:50 +00:00
};
}