1 { lib, stdenv, fetchFromGitHub, makeWrapper
2 , ghostscript, netpbm, perl }:
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "sha256-Vl7ozawd4Ra+yDarRpmPhjF7deJELaxo07L4/qVV4fw=";
16 buildInputs = [ ghostscript netpbm perl ];
18 nativeBuildInputs = [ makeWrapper ];
24 --with-texpath=$out/share/texmf/tex/latex/html
28 for p in $out/bin/{latex2html,pstoimg}; do \
29 wrapProgram $p --add-flags '--tmp="''${TMPDIR:-/tmp}"'
34 description = "LaTeX-to-HTML translator";
36 A Perl program that translates LaTeX into HTML (HyperText Markup
37 Language), optionally creating separate HTML files corresponding to each
38 unit (e.g., section) of the document. LaTeX2HTML proceeds by interpreting
39 LaTeX (to the best of its abilities). It contains definitions from a wide
40 variety of classes and packages, and users may add further definitions by
41 writing Perl scripts that provide information about class/package
45 homepage = "https://www.ctan.org/pkg/latex2html";
47 license = licenses.gpl2;
48 platforms = with platforms; linux ++ darwin;
49 maintainers = with maintainers; [ yurrriq ];