* Oops.
svn path=/nixpkgs/trunk/; revision=3218
This commit is contained in:
parent
6b35cefbf8
commit
2cc66184ce
|
@ -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
|
||||
};
|
||||
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue