2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, lib, meson, ninja, fetchFromGitHub
|
2018-11-07 15:07:00 +00:00
|
|
|
, pkgconfig, zathura_core, cairo , gtk-mac-integration, girara, mupdf }:
|
2014-05-17 13:16:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-12 09:01:11 +01:00
|
|
|
version = "0.3.5";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zathura-pdf-mupdf";
|
2014-05-17 13:16:50 +01:00
|
|
|
|
2018-11-07 15:07:00 +00:00
|
|
|
# pwmt.org server was down at the time of last update
|
|
|
|
# src = fetchurl {
|
|
|
|
# url = "https://pwmt.org/projects/zathura-pdf-mupdf/download/${name}.tar.xz";
|
|
|
|
# sha256 = "1zbaqimav4wfgimpy3nfzl10qj7vyv23rdy2z5z7z93jwbp2rc2j";
|
|
|
|
# };
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pwmt";
|
|
|
|
repo = "zathura-pdf-mupdf";
|
|
|
|
rev = version;
|
2019-09-12 09:01:11 +01:00
|
|
|
sha256 = "0wb46hllykbi30ir69s8s23mihivqn13mgfdzawbsn2a21p8y4zl";
|
2014-05-17 13:16:50 +01:00
|
|
|
};
|
|
|
|
|
2018-03-27 20:52:26 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
2018-02-14 19:52:15 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2018-03-27 20:52:26 +01:00
|
|
|
zathura_core girara mupdf cairo
|
2019-03-03 21:29:52 +00:00
|
|
|
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
2018-02-14 19:52:15 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|