mupdf: 1.14.0 -> 1.16.1

This commit is contained in:
Matthieu Coudron 2019-09-12 00:34:10 +09:00 committed by Matthieu Coudron
parent f18a6d5d8f
commit 1ba3d1a591

View file

@ -14,24 +14,17 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
version = "1.14.0"; version = "1.16.1";
pname = "mupdf"; pname = "mupdf";
src = fetchurl { src = fetchurl {
url = "https://mupdf.com/downloads/archive/${pname}-${version}-source.tar.gz"; url = "https://mupdf.com/downloads/archive/${pname}-${version}-source.tar.gz";
sha256 = "093p7lv6pgyymagn28n58fs0np928r0i5p2az9cc4gwccwx4hhy4"; sha256 = "0iz4ickj52fxjp8crg573kjrl4viq279g589isdpgpckslysf7g7";
}; };
patches = patches =
# Use shared libraries to decrease size # Use shared libraries to decrease size
[( fetchpatch stdenv.lib.optional (!stdenv.isDarwin) ./mupdf-1.14-shared_libs.patch
{
name = "CVE-2018-18662";
url = "http://git.ghostscript.com/?p=mupdf.git;a=patch;h=164ddc22ee0d5b63a81d5148f44c37dd132a9356";
sha256 = "1jkzh20n3b854871h86cy5y7fvy0d5wyqy51b3fg6gj3a0jqpzzd";
}
)]
++ stdenv.lib.optional (!stdenv.isDarwin) ./mupdf-1.14-shared_libs.patch
++ stdenv.lib.optional stdenv.isDarwin ./darwin.patch ++ stdenv.lib.optional stdenv.isDarwin ./darwin.patch
; ;