forked from mirrors/nixpkgs
Add tex4ht.
svn path=/nixpkgs/trunk/; revision=19739
This commit is contained in:
parent
0e55350a85
commit
5a7228a099
37
pkgs/misc/tex/tex4ht/default.nix
Normal file
37
pkgs/misc/tex/tex4ht/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{stdenv, fetchurl, tetex}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "tex4ht-1.0.2009_06_11_1038";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.cse.ohio-state.edu/~gurari/TeX4ht/fix/${name}.tar.gz";
|
||||
sha1 = "7d46488059316dec3234b6478cd0d2ca8f4d110f";
|
||||
};
|
||||
|
||||
buildInputs = [ tetex ];
|
||||
|
||||
buildPhase = ''
|
||||
cd src
|
||||
for f in tex4ht t4ht htcmd ; do
|
||||
# -DENVFILE="$out/share/texmf-nix/tex4ht/base/unix/tex4ht.env"
|
||||
gcc -o $f $f.c -I${tetex}/include -L${tetex}/lib -DHAVE_DIRENT_H -DHAVE_DIRENT_H -DKPATHSEA -lkpathsea
|
||||
done
|
||||
cd -
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
for f in src/tex4ht src/t4ht src/htcmd bin/unix/*; do # */
|
||||
mv $f $out/bin/.
|
||||
done
|
||||
|
||||
ensureDir $out/share
|
||||
cp -r texmf $out/share/.
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html;
|
||||
# LaTeX Project Public License
|
||||
license = "LPPL";
|
||||
};
|
||||
}
|
|
@ -8740,6 +8740,10 @@ let
|
|||
inherit fetchurl stdenv flex bison zlib libpng ncurses ed;
|
||||
};
|
||||
|
||||
tex4ht = import ../misc/tex/tex4ht {
|
||||
inherit fetchurl stdenv tetex;
|
||||
};
|
||||
|
||||
texFunctions = import ../misc/tex/nix {
|
||||
inherit stdenv perl tetex graphviz ghostscript makeFontsConf imagemagick runCommand lib;
|
||||
inherit (haskellPackages) lhs2tex;
|
||||
|
|
Loading…
Reference in a new issue