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

35 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, pkgconfig, zathura_core, gtk, girara, mupdf, openssl
, libjpeg, jbig2dec, openjpeg, fetchpatch }:
2014-05-17 08:16:50 -04:00
stdenv.mkDerivation rec {
2016-03-01 14:49:46 -05:00
version = "0.3.0";
2014-05-17 08:16:50 -04:00
name = "zathura-pdf-mupdf-${version}";
2015-11-25 10:04:30 -05:00
src = fetchurl {
url = "https://pwmt.org/projects/zathura-pdf-mupdf/download/${name}.tar.gz";
2016-03-01 14:49:46 -05:00
sha256 = "1j3j3wbp49walb19f0966qsnlqbd26wnsjpcxfbf021dav8vk327";
2014-05-17 08:16:50 -04:00
};
2016-06-12 00:59:15 -04:00
buildInputs = [ pkgconfig zathura_core gtk girara openssl mupdf libjpeg jbig2dec openjpeg ];
2014-05-17 08:16:50 -04:00
2015-11-25 10:04:30 -05:00
makeFlags = [ "PREFIX=$(out)" "PLUGINDIR=$(out)/lib" ];
2014-05-17 08:16:50 -04:00
2016-06-12 00:59:15 -04:00
patches = [(fetchpatch {
name = "mupdf-1.9.patch";
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/mupdf-1.9.patch?h=packages/zathura-pdf-mupdf&id=385ad96261b7297fdebbee6f4b22ec20dda8d65e";
2016-06-12 00:59:15 -04:00
sha256 = "185wgg0z4b0z5aybcnnyvbs50h43imn5xz3nqmya4rk4v5bwy49y";
})];
2014-05-17 08:16:50 -04:00
meta = with lib; {
2014-05-17 08:16:50 -04:00
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 = licenses.zlib;
platforms = platforms.linux;
maintainers = with maintainers; [ cstrahan ];
2014-05-17 08:16:50 -04:00
};
}