texFunctions: Use modular texlive instead of tetex

This commit is contained in:
Eelco Dolstra 2015-12-03 17:36:38 +01:00
parent 33044458eb
commit ec795d3632
1 changed files with 20 additions and 15 deletions

View File

@ -10,11 +10,16 @@ rec {
, extraFiles ? []
, compressBlanksInIndex ? true
, packages ? []
, texPackages ? {}
, copySources ? false
}:
assert generatePDF -> !generatePS;
let
tex = pkgs.texlive.combine texPackages;
in
pkgs.stdenv.mkDerivation {
name = "doc";
@ -27,7 +32,7 @@ rec {
includes = map (x: [x.key (baseNameOf (toString x.key))])
(findLaTeXIncludes {inherit rootFile;});
buildInputs = [ pkgs.tetex pkgs.perl ] ++ packages;
buildInputs = [ tex pkgs.perl ] ++ packages;
};
@ -103,7 +108,7 @@ rec {
builder = ./dot2pdf.sh;
inherit dotGraph fontsConf;
buildInputs = [
pkgs.perl pkgs.tetex pkgs.graphviz
pkgs.perl pkgs.graphviz
];
};
@ -117,7 +122,7 @@ rec {
builder = ./dot2ps.sh;
inherit dotGraph;
buildInputs = [
pkgs.perl pkgs.tetex pkgs.graphviz pkgs.ghostscript
pkgs.perl pkgs.graphviz pkgs.ghostscript
];
};