summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-12-13 13:14:35 -0500
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-12-13 13:14:35 -0500
commitc644c7578df9623a0589f19eb55331655b209c27 (patch)
tree190c44dc955a6d06a7119c91169b7fbe031227d7 /pkgs/tools/typesetting
parentf4ad230f90ef312695adc26f256036203e9c70af (diff)
downloadnixpkgs-c644c7578df9623a0589f19eb55331655b209c27.tar
nixpkgs-c644c7578df9623a0589f19eb55331655b209c27.tar.gz
nixpkgs-c644c7578df9623a0589f19eb55331655b209c27.tar.bz2
nixpkgs-c644c7578df9623a0589f19eb55331655b209c27.tar.lz
nixpkgs-c644c7578df9623a0589f19eb55331655b209c27.tar.xz
nixpkgs-c644c7578df9623a0589f19eb55331655b209c27.tar.zst
nixpkgs-c644c7578df9623a0589f19eb55331655b209c27.zip
texlive.bin.dvipng: fix "Fatal error, PK file ends prematurely"
Closes: #75605
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tex/texlive/bin.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix
index d251d55c9f5..2b26d9462bf 100644
--- a/pkgs/tools/typesetting/tex/texlive/bin.nix
+++ b/pkgs/tools/typesetting/tex/texlive/bin.nix
@@ -302,6 +302,15 @@ dvipng = stdenv.mkDerivation {
   nativeBuildInputs = [ perl pkgconfig ];
   buildInputs = [ core/*kpathsea*/ zlib libpng freetype gd ghostscript makeWrapper ];
 
+  patches = [
+    (fetchpatch {
+      url = "http://git.savannah.nongnu.org/cgit/dvipng.git/patch/?id=f3ff241827a587e3d39eda477041fd3280f5b245";
+      sha256 = "1a0ixl9mga24p6xk8dy3v60yifvbzd27vs0hv8996rfkp8jqa7is";
+      stripLen = 1;
+      extraPrefix = "texk/dvipng/dvipng-src/";
+    })
+  ];
+
   preConfigure = ''
     cd texk/dvipng
     patchShebangs doc/texi2pod.pl