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:
parent
89e1245c65
commit
828bc3812c
@ -15,7 +15,10 @@ let
|
|||||||
pkgList = rec {
|
pkgList = rec {
|
||||||
all = lib.filter pkgFilter (combinePkgs pkgSet);
|
all = lib.filter pkgFilter (combinePkgs pkgSet);
|
||||||
splitBin = lib.partition (p: p.tlType == "bin") all;
|
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;
|
nonbin = mkUniquePkgs splitBin.wrong;
|
||||||
|
|
||||||
# extra interpreters needed for shebangs, based on 2015 schemes "medium" and "tetex"
|
# extra interpreters needed for shebangs, based on 2015 schemes "medium" and "tetex"
|
||||||
|
@ -30,6 +30,7 @@ let
|
|||||||
inherit bin combinePkgs buildEnv fastUnique lib makeWrapper writeText
|
inherit bin combinePkgs buildEnv fastUnique lib makeWrapper writeText
|
||||||
stdenv python ruby;
|
stdenv python ruby;
|
||||||
perl = perl522; # avoid issues like #26890, probably remove after texlive upgrade
|
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
|
# the set of TeX Live packages, collections, and schemes; using upstream naming
|
||||||
|
Loading…
x
Reference in New Issue
Block a user