2020-05-26 08:54:42 +02:00
|
|
|
{ stdenv, lib, meson, ninja, fetchurl, fetchpatch
|
2020-11-13 19:19:37 +01:00
|
|
|
, cairo
|
|
|
|
, girara
|
|
|
|
, gtk-mac-integration
|
|
|
|
, gumbo
|
|
|
|
, jbig2dec
|
|
|
|
, libjpeg
|
|
|
|
, mupdf
|
2021-03-16 22:02:55 +01:00
|
|
|
, openjpeg
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2020-11-13 19:19:37 +01:00
|
|
|
, zathura_core
|
|
|
|
}:
|
2014-05-17 14:16:50 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-11-13 19:19:37 +01:00
|
|
|
version = "0.3.6";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zathura-pdf-mupdf";
|
2014-05-17 14:16:50 +02:00
|
|
|
|
2020-03-25 08:31:52 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
2020-11-13 19:19:37 +01:00
|
|
|
sha256 = "1r3v37k9fl2rxipvacgxr36llywvy7n20a25h3ajlyk70697sa66";
|
2014-05-17 14:16:50 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2018-02-14 20:52:15 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-11-13 19:19:37 +01:00
|
|
|
cairo
|
|
|
|
girara
|
|
|
|
gumbo
|
|
|
|
jbig2dec
|
|
|
|
libjpeg
|
|
|
|
mupdf
|
2021-03-16 22:02:55 +01:00
|
|
|
openjpeg
|
2020-11-13 19:19:37 +01:00
|
|
|
zathura_core
|
2019-03-03 22:29:52 +01:00
|
|
|
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
2018-02-14 20:52:15 +01:00
|
|
|
|
2020-11-13 19:19:37 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlink-external=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
# avoid: undefined symbol: gumbo_destroy_output
|
|
|
|
NIX_LDFLAGS = [ "-lgumbo" ];
|
|
|
|
|
2018-03-27 21:52:26 +02:00
|
|
|
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
2014-05-17 14:16:50 +02:00
|
|
|
|
2015-05-06 16:34:12 +02:00
|
|
|
meta = with lib; {
|
2020-02-26 15:39:58 +01:00
|
|
|
homepage = "https://pwmt.org/projects/zathura-pdf-mupdf/";
|
2014-05-17 14:16:50 +02:00
|
|
|
description = "A zathura PDF plugin (mupdf)";
|
|
|
|
longDescription = ''
|
|
|
|
The zathura-pdf-mupdf plugin adds PDF support to zathura by
|
|
|
|
using the mupdf rendering library.
|
|
|
|
'';
|
2015-05-06 16:34:12 +02:00
|
|
|
license = licenses.zlib;
|
2018-02-14 20:52:15 +01:00
|
|
|
platforms = platforms.unix;
|
2015-05-06 16:34:12 +02:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2014-05-17 14:16:50 +02:00
|
|
|
};
|
|
|
|
}
|