nixpkgs/pkgs/misc/tex/nix/default.nix
Eelco Dolstra 2cc66184ce * Oops.
svn path=/nixpkgs/trunk/; revision=3218
2005-06-20 14:26:07 +00:00

39 lines
644 B
Nix

pkgs:
rec {
runLaTeX =
{ rootFile
, generatePDF ? true
}:
pkgs.stdenv.mkDerivation {
name = "doc";
builder = ./run-latex.sh;
inherit rootFile generatePDF;
includes = import (findLaTeXIncludes {inherit rootFile;});
buildInputs = [ pkgs.tetex ];
};
findLaTeXIncludes =
{ rootFile
}:
derivation {
inherit (pkgs) stdenv;
name = "latex-includes";
system = pkgs.stdenv.system;
builder = (pkgs.perl ~ /bin/perl);
args = [ ./find-includes.pl ];
rootFile = toString rootFile; # !!! hacky
};
}