mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
430dc52b84
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/texexpand -h` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/texexpand --help` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/texexpand --version` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html -h` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html --help` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html -V` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html -v` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html --version` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html -h` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/latex2html --help` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped -h` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped --help` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped -V` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped -v` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped --version` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped -h` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/.pstoimg-wrapped --help` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg -h` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg --help` got 0 exit code - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg -V` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg -v` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg --version` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg -h` and found version 2018 - ran `/nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018/bin/pstoimg --help` and found version 2018 - found 2018 with grep in /nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018 - found 2018 in filename of file in /nix/store/ca56d1xc80h2kjv0q7kz5bkj6j96kakg-latex2html-2018 cc "@yurrriq"
53 lines
1.6 KiB
Nix
53 lines
1.6 KiB
Nix
{ stdenv, fetchurl, makeWrapper
|
|
, ghostscript, netpbm, perl }:
|
|
# TODO: withTex
|
|
|
|
# Ported from Homebrew.
|
|
# https://github.com/Homebrew/homebrew-core/blob/21834573f690407d34b0bbf4250b82ec38dda4d6/Formula/latex2html.rb
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "latex2html-${version}";
|
|
version = "2018";
|
|
|
|
src = fetchurl {
|
|
url = "http://mirrors.ctan.org/support/latex2html/latex2html-${version}.tar.gz";
|
|
sha256 = "1qnlg8ajh0amy9gy8rh8sp1l224ak54264i3dhk7rrv9s4k7bqq9";
|
|
};
|
|
|
|
buildInputs = [ ghostscript netpbm perl ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
configurePhase = ''
|
|
./configure \
|
|
--prefix="$out" \
|
|
--without-mktexlsr \
|
|
--with-texpath=$out/share/texmf/tex/latex/html
|
|
'';
|
|
|
|
postInstall = ''
|
|
for p in $out/bin/{latex2html,pstoimg}; do \
|
|
wrapProgram $p --add-flags '--tmp="''${TMPDIR:-/tmp}"'
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "LaTeX-to-HTML translator";
|
|
longDescription = ''
|
|
A Perl program that translates LaTeX into HTML (HyperText Markup
|
|
Language), optionally creating separate HTML files corresponding to each
|
|
unit (e.g., section) of the document. LaTeX2HTML proceeds by interpreting
|
|
LaTeX (to the best of its abilities). It contains definitions from a wide
|
|
variety of classes and packages, and users may add further definitions by
|
|
writing Perl scripts that provide information about class/package
|
|
commands.
|
|
'';
|
|
|
|
homepage = https://www.ctan.org/pkg/latex2html;
|
|
|
|
license = licenses.gpl2;
|
|
platforms = with platforms; linux ++ darwin;
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
};
|
|
}
|