latex2html: init at 2016 #21802

Open
wants to merge 1 commit into
from

Projects

None yet

3 participants

@yurrriq
Contributor
yurrriq commented Jan 11, 2017 edited
Motivation for this change

Add latex2html.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Mic92
Mic92 approved these changes Jan 11, 2017 View changes
pkgs/tools/misc/latex2html/default.nix
+ version = "2016";
+
+ src = fetchurl {
+ url = http://mirrors.ctan.org/support/latex2html/latex2html-2016.tar.gz;
@Mic92
Mic92 Jan 11, 2017 Contributor

nitpick:

url = "http://mirrors.ctan.org/support/latex2html/latex2html-${version}.tar.gz;"
@yurrriq
Contributor
yurrriq commented Jan 11, 2017

Good call! Thank you.

@yurrriq
Contributor
yurrriq commented Jan 11, 2017

Force pushed with the amended src.url.

@Mic92
Contributor
Mic92 commented Jan 11, 2017 edited

The build contains spurious leftover to the build directory. Compiling a document to html results in the following error:

$ latex2html main.tex
Error: '/tmp/nix-build-latex2html-2016.drv-0' not usable as temporary directory.
$ grep /tmp/nix-build-latex2html-2016.drv-0 $(which latex2html)                                                                                                        
    $TEXEXPAND = "$PERL /tmp/nix-build-latex2html-2016.drv-0/latex2html-2016${dd}texexpand";
    $PSTOIMG   = "$PERL /tmp/nix-build-latex2html-2016.drv-0/latex2html-2016${dd}pstoimg";
    $ICONSERVER = L2hos->path2URL("/tmp/nix-build-latex2html-2016.drv-0/latex2html-2016${dd}icons");
    $RGBCOLORFILE = "/tmp/nix-build-latex2html-2016.drv-0/latex2html-2016${dd}styles${dd}rgb.txt";
    $CRAYOLAFILE = "/tmp/nix-build-latex2html-2016.drv-0/latex2html-2016${dd}styles${dd}crayola.txt";
@yurrriq
Contributor
yurrriq commented Jan 11, 2017

@Mic92: I've ticked the "Allow edits from maintainers" box, so feel free to make any changes you see fit. I don't have the time for now.

@yurrriq yurrriq latex2html: init at 2016 69a928c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment