texlive: add ghostscript when containing pdfcrop

Potential disadvantage: ghostscript will become visible to user,
so there may e.g. be (new) collisions in nix-env due to this.
Fixes #28411.
This commit is contained in:
Vladimír Čunát 2017-08-31 21:16:14 +02:00
parent 89e1245c65
commit 828bc3812c
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 5 additions and 1 deletions

View file

@ -15,7 +15,10 @@ let
pkgList = rec {
all = lib.filter pkgFilter (combinePkgs pkgSet);
splitBin = lib.partition (p: p.tlType == "bin") all;
bin = mkUniquePkgs splitBin.right;
bin = mkUniquePkgs splitBin.right
++ lib.optional
(lib.any (p: p.tlType == "run" && p.pname == "pdfcrop") splitBin.wrong)
(lib.getBin ghostscript);
nonbin = mkUniquePkgs splitBin.wrong;
# extra interpreters needed for shebangs, based on 2015 schemes "medium" and "tetex"

View file

@ -30,6 +30,7 @@ let
inherit bin combinePkgs buildEnv fastUnique lib makeWrapper writeText
stdenv python ruby;
perl = perl522; # avoid issues like #26890, probably remove after texlive upgrade
ghostscript = ghostscriptX; # could be without X, probably, but we use X above
};
# the set of TeX Live packages, collections, and schemes; using upstream naming