3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/zathura/pdf-mupdf/default.nix
Matthieu Coudron 8c5898347d zathura: 0.3.4 -> 0.3.5
to fix issues with the new mupdf
2019-09-15 17:18:18 +09:00

40 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 ];
};
}