svn path=/nixpkgs/trunk/; revision=3218
This commit is contained in:
Eelco Dolstra 2005-06-20 14:26:07 +00:00
parent 6b35cefbf8
commit 2cc66184ce
2 changed files with 20 additions and 1 deletions

View File

@ -2,6 +2,7 @@ pkgs:
rec {
runLaTeX =
{ rootFile
, generatePDF ? true
@ -12,9 +13,27 @@ rec {
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
};
}

View File

@ -2,7 +2,7 @@
ensureDir $out
for i in $rootFile $sources; do
for i in $includes; do
if test -d $i; then
cp $i/* .
else