mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
* 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 New Issue
Block a user