advi: init at 2.0.0 (#214814)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by Vincenzo Mantova Sandro and committed by GitHub fdf6e37d 4fbaf6bd

+66
+64
pkgs/tools/typesetting/tex/advi/default.nix
··· 1 + { fetchurl 2 + , lib 3 + , makeWrapper 4 + , writeShellScriptBin 5 + , ghostscriptX 6 + , ocamlPackages 7 + , texlive 8 + , which 9 + }: 10 + 11 + let 12 + # simplified fake-opam edited from tweag's opam-nix 13 + fake-opam = writeShellScriptBin "opam" '' 14 + case "$1 $2" in 15 + "config var") 16 + case "$3" in 17 + man) echo "$out/share/man";; 18 + etc) echo "$out/etc";; 19 + doc) echo "$out/share/doc";; 20 + share) echo "$out/share";; 21 + prefix) echo "$out";; 22 + *) echo "fake-opam does not understand arguments: $@" ; exit 1 ;; 23 + esac;; 24 + *) echo "fake-opam does not understand arguments: $@" ; exit 1 ;; 25 + esac 26 + ''; 27 + 28 + # texlive currently does not symlink kpsexpand 29 + kpsexpand = writeShellScriptBin "kpsexpand" '' 30 + exec kpsetool -v 31 + ''; 32 + in 33 + ocamlPackages.buildDunePackage rec { 34 + pname = "advi"; 35 + version = "2.0.0"; 36 + 37 + useDune2 = true; 38 + 39 + minimalOCamlVersion = "4.11"; 40 + 41 + src = fetchurl { 42 + url = "http://advi.inria.fr/advi-${version}.tar.gz"; 43 + hash = "sha256-c0DQHlvdekJyXCxmR4+Ut/njtoCzmqX6hNazNv8PpBQ="; 44 + }; 45 + 46 + nativeBuildInputs = [ fake-opam kpsexpand makeWrapper texlive.combined.scheme-medium which ]; 47 + buildInputs = with ocamlPackages; [ camlimages ghostscriptX graphics ]; 48 + 49 + # TODO: ghostscript linked from texlive.combine will override ghostscriptX and break advi 50 + preInstall = '' 51 + make install 52 + wrapProgram "$out/bin/advi" --prefix PATH : "${lib.makeBinPath [ ghostscriptX ]}" 53 + ''; 54 + 55 + # TODO: redirect /share/advi/tex/latex to tex output compatible with texlive.combine 56 + # (requires patching check() in advi-latex-files) 57 + 58 + meta = with lib; { 59 + homepage = "http://advi.inria.fr/"; 60 + description = "Active-DVI is a Unix-platform DVI previewer and a programmable presenter for slides written in LaTeX."; 61 + license = licenses.lgpl21Only; 62 + maintainers = [ maintainers.xworld21 ]; 63 + }; 64 + }
+2
pkgs/top-level/all-packages.nix
··· 4641 4641 4642 4642 ### TOOLS/TYPESETTING/TEX 4643 4643 4644 + advi = callPackage ../tools/typesetting/tex/advi { }; 4645 + 4644 4646 auctex = callPackage ../tools/typesetting/tex/auctex { }; 4645 4647 4646 4648 blahtexml = callPackage ../tools/typesetting/tex/blahtexml { };