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