2020-05-25 23:54:42 -07:00
|
|
|
{ stdenv, lib, meson, ninja, fetchurl, fetchpatch
|
2018-11-07 07:07:00 -08:00
|
|
|
, pkgconfig, zathura_core, cairo , gtk-mac-integration, girara, mupdf }:
|
2014-05-17 05:16:50 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-12 01:01:11 -07:00
|
|
|
version = "0.3.5";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "zathura-pdf-mupdf";
|
2014-05-17 05:16:50 -07:00
|
|
|
|
2020-03-25 00:31:52 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq";
|
2014-05-17 05:16:50 -07:00
|
|
|
};
|
|
|
|
|
2020-05-25 23:54:42 -07:00
|
|
|
patches = [
|
|
|
|
# compatibility with MuPDF 1.17
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://git.pwmt.org/pwmt/zathura-pdf-mupdf/-/commit/c7f341addb76d5e6fd8c24c666d8fe97c451a4cb.patch";
|
|
|
|
sha256 = "12rikx2j7dpngfma9x4i504w58a8xx3rc0gmyz183v19hn54c075";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-03-27 12:52:26 -07:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
2018-02-14 11:52:15 -08:00
|
|
|
|
|
|
|
buildInputs = [
|
2018-03-27 12:52:26 -07:00
|
|
|
zathura_core girara mupdf cairo
|
2019-03-03 13:29:52 -08:00
|
|
|
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
2018-02-14 11:52:15 -08:00
|
|
|
|
2018-03-27 12:52:26 -07:00
|
|
|
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
2014-05-17 05:16:50 -07:00
|
|
|
|
2015-05-06 07:34:12 -07:00
|
|
|
meta = with lib; {
|
2020-02-26 06:39:58 -08:00
|
|
|
homepage = "https://pwmt.org/projects/zathura-pdf-mupdf/";
|
2014-05-17 05:16:50 -07: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 07:34:12 -07:00
|
|
|
license = licenses.zlib;
|
2018-02-14 11:52:15 -08:00
|
|
|
platforms = platforms.unix;
|
2015-05-06 07:34:12 -07:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2014-05-17 05:16:50 -07:00
|
|
|
};
|
|
|
|
}
|