8c5898347d
to fix issues with the new mupdf
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, lib, meson, ninja, fetchFromGitHub
|
|
, pkgconfig, zathura_core, cairo , gtk-mac-integration, girara, mupdf }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.3.5";
|
|
pname = "zathura-pdf-mupdf";
|
|
|
|
# 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;
|
|
sha256 = "0wb46hllykbi30ir69s8s23mihivqn13mgfdzawbsn2a21p8y4zl";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
|
|
|
buildInputs = [
|
|
zathura_core girara mupdf cairo
|
|
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
|
|
|
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
|
|
|
meta = with lib; {
|
|
homepage = https://pwmt.org/projects/zathura-pdf-mupdf/;
|
|
description = "A zathura PDF plugin (mupdf)";
|
|
longDescription = ''
|
|
The zathura-pdf-mupdf plugin adds PDF support to zathura by
|
|
using the mupdf rendering library.
|
|
'';
|
|
license = licenses.zlib;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
};
|
|
}
|