nixpkgs-suyu/pkgs/applications/misc/zathura/pdf-mupdf/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, meson, ninja, fetchurl, fetchpatch
, cairo
, girara
, gtk-mac-integration
, gumbo
, jbig2dec
, libjpeg
, mupdf
, openjpeg
, pkg-config
, zathura_core
}:
2014-05-17 14:16:50 +02:00
stdenv.mkDerivation rec {
version = "0.3.6";
pname = "zathura-pdf-mupdf";
2014-05-17 14:16:50 +02:00
src = fetchurl {
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
sha256 = "1r3v37k9fl2rxipvacgxr36llywvy7n20a25h3ajlyk70697sa66";
2014-05-17 14:16:50 +02:00
};
nativeBuildInputs = [ meson ninja pkg-config ];
2018-02-14 20:52:15 +01:00
buildInputs = [
cairo
girara
gumbo
jbig2dec
libjpeg
mupdf
openjpeg
zathura_core
2019-03-03 22:29:52 +01:00
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
2018-02-14 20:52:15 +01:00
mesonFlags = [
"-Dlink-external=true"
];
# avoid: undefined symbol: gumbo_destroy_output
NIX_LDFLAGS = [ "-lgumbo" ];
2018-03-27 21:52:26 +02:00
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
2014-05-17 14:16:50 +02:00
meta = with lib; {
homepage = "https://pwmt.org/projects/zathura-pdf-mupdf/";
2014-05-17 14:16:50 +02:00
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;
2018-02-14 20:52:15 +01:00
platforms = platforms.unix;
maintainers = with maintainers; [ cstrahan ];
2014-05-17 14:16:50 +02:00
};
}