2014-05-17 14:16:50 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, zathura_core, gtk, girara, mupdf, openssl, openjpeg, libjpeg, jbig2dec }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-23 13:57:30 +02:00
|
|
|
version = "0.2.7";
|
2014-05-17 14:16:50 +02:00
|
|
|
name = "zathura-pdf-mupdf-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pwmt.org/projects/zathura/plugins/download/${name}.tar.gz";
|
2014-10-23 13:57:30 +02:00
|
|
|
sha256 = "0gr5kkk75hn7sz9kmzynhhcdd9xb9sz5gdb8p1iz9g0fjhskyd5i";
|
2014-05-17 14:16:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig zathura_core gtk girara openssl mupdf openjpeg libjpeg jbig2dec ];
|
|
|
|
|
|
|
|
makeFlags = "PREFIX=$(out) PLUGINDIR=$(out)/lib";
|
|
|
|
|
|
|
|
preConfigure = "patch -p1 < ${./config.patch}";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://pwmt.org/projects/zathura/;
|
|
|
|
description = "A zathura PDF plugin (mupdf)";
|
|
|
|
longDescription = ''
|
|
|
|
The zathura-pdf-mupdf plugin adds PDF support to zathura by
|
|
|
|
using the mupdf rendering library.
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.zlib;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
# maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|