2018-03-27 12:52:26 -07:00
|
|
|
{ stdenv, lib, meson, ninja, fetchurl, pkgconfig, zathura_core, cairo,
|
2018-07-20 17:44:44 -07:00
|
|
|
gtk-mac-integration, girara, mupdf }:
|
2014-05-17 05:16:50 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-27 12:52:26 -07:00
|
|
|
version = "0.3.3";
|
2014-05-17 05:16:50 -07:00
|
|
|
name = "zathura-pdf-mupdf-${version}";
|
|
|
|
|
2015-11-25 07:04:30 -08:00
|
|
|
src = fetchurl {
|
2018-03-27 12:52:26 -07:00
|
|
|
url = "https://pwmt.org/projects/zathura-pdf-mupdf/download/${name}.tar.xz";
|
|
|
|
sha256 = "1zbdqimav4wfgimpy3nfzl10qj7vyv23rdy2z5z7z93jwbp2rc2j";
|
2014-05-17 05:16:50 -07:00
|
|
|
};
|
|
|
|
|
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
|
2018-02-14 23:44:40 -08:00
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin [
|
2018-02-14 11:52:15 -08:00
|
|
|
gtk-mac-integration
|
|
|
|
];
|
|
|
|
|
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; {
|
2018-03-27 12:52:26 -07: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
|
|
|
};
|
|
|
|
}
|