b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ stdenv, lib, meson, ninja, fetchurl, fetchpatch
|
|
, cairo
|
|
, girara
|
|
, gtk-mac-integration
|
|
, gumbo
|
|
, jbig2dec
|
|
, libjpeg
|
|
, mupdf
|
|
, openjpeg
|
|
, pkg-config
|
|
, zathura_core
|
|
, tesseract
|
|
, leptonica
|
|
, mujs
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.3.8";
|
|
pname = "zathura-pdf-mupdf";
|
|
|
|
src = fetchurl {
|
|
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-wgW0z1ANjP6ezqreVOX6jUzRKYzYXxem9QxkclkRYhc=";
|
|
};
|
|
|
|
patches = [ ./fix-mupdf-1.20.patch ];
|
|
|
|
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 ];
|
|
};
|
|
}
|