texlive.bin.dvipng: fix "Fatal error, PK file ends prematurely"
Closes: #75605
commitc644c7578df9623a0589f19eb55331655b209c27
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
dateFri 13 Dec 2019, 13:14 (7 years ago)
parentf4ad230
pkgs/tools/typesetting/tex/texlive/bin.nix+9
@@ -302,6 +302,15 @@ dvipng = stdenv.mkDerivation {
302302 nativeBuildInputs = [ perl pkgconfig ];
303303 buildInputs = [ core/*kpathsea*/ zlib libpng freetype gd ghostscript makeWrapper ];
304304
305+ patches = [
306+ (fetchpatch {
307+ url = "http://git.savannah.nongnu.org/cgit/dvipng.git/patch/?id=f3ff241827a587e3d39eda477041fd3280f5b245";
308+ sha256 = "1a0ixl9mga24p6xk8dy3v60yifvbzd27vs0hv8996rfkp8jqa7is";
309+ stripLen = 1;
310+ extraPrefix = "texk/dvipng/dvipng-src/";
311+ })
312+ ];
313+
305314 preConfigure = ''
306315 cd texk/dvipng
307316 patchShebangs doc/texi2pod.pl