nixpkgs/pkgs/applications/misc/zathura/pdf-mupdf/default.nix
Deniz Koluaçık b232557c45
zathura: 0.4.9 -> 0.5.2
https://pwmt.org/projects/zathura/changelog/0.5.2/index.html
Zathura plugins are updated to the latest versions as well.
2022-11-30 14:33:04 +03:00

55 lines
1.1 KiB
Nix

{ stdenv, lib, meson, ninja, fetchurl, cairo
, girara
, gtk-mac-integration
, gumbo
, jbig2dec
, libjpeg
, mupdf
, openjpeg
, pkg-config
, zathura_core
, tesseract
, leptonica
, mujs
}:
stdenv.mkDerivation rec {
version = "0.4.0";
pname = "zathura-pdf-mupdf";
src = fetchurl {
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
sha256 = "0pcjxvlh4hls8mjhjghhhihyy2kza8l27wdx0yq4bkd1g1b5f74c";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [
cairo
girara
gumbo
jbig2dec
libjpeg
mupdf
openjpeg
zathura_core
tesseract
leptonica
mujs
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
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;
maintainers = with maintainers; [ cstrahan ];
};
}