texlive: fixup some bin/ links, e.g. xe(la)tex
This commit is contained in:
parent
16829e4bde
commit
9d5f23f025
@ -28,7 +28,7 @@ let
|
|||||||
++ lib.optional (lib.any pkgNeedsPython splitBin.wrong) ruby;
|
++ lib.optional (lib.any pkgNeedsPython splitBin.wrong) ruby;
|
||||||
};
|
};
|
||||||
|
|
||||||
mkUniquePkgs = pkgs: fastUnique (a: b: a < b)
|
mkUniquePkgs = pkgs: fastUnique (a: b: a < b) # highlighting hack: >
|
||||||
# here we deal with those dummy packages needed for hyphenation filtering
|
# here we deal with those dummy packages needed for hyphenation filtering
|
||||||
(map (p: if lib.isDerivation p then builtins.toPath p else "") pkgs);
|
(map (p: if lib.isDerivation p then builtins.toPath p else "") pkgs);
|
||||||
|
|
||||||
@ -58,6 +58,17 @@ in buildEnv {
|
|||||||
'')
|
'')
|
||||||
pkgList.bin
|
pkgList.bin
|
||||||
+
|
+
|
||||||
|
|
||||||
|
# Patch texlinks.sh back to 2015 version;
|
||||||
|
# otherwise some bin/ links break, e.g. xe(la)tex.
|
||||||
|
''
|
||||||
|
(
|
||||||
|
cd "$out/share/texmf/scripts/texlive"
|
||||||
|
local target="$(readlink texlinks.sh)"
|
||||||
|
rm texlinks.sh && cp "$target" texlinks.sh
|
||||||
|
patch --verbose -R texlinks.sh < '${./texlinks.diff}'
|
||||||
|
)
|
||||||
|
'' +
|
||||||
''
|
''
|
||||||
export PATH="$out/bin:$out/share/texmf/scripts/texlive:${perl}/bin:$PATH"
|
export PATH="$out/bin:$out/share/texmf/scripts/texlive:${perl}/bin:$PATH"
|
||||||
export TEXMFCNF="$out/share/texmf/web2c"
|
export TEXMFCNF="$out/share/texmf/web2c"
|
||||||
|
9
pkgs/tools/typesetting/tex/texlive-new/texlinks.diff
Normal file
9
pkgs/tools/typesetting/tex/texlive-new/texlinks.diff
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@@ -157,7 +157,7 @@
|
||||||
|
verbose_echo "skipped ConTeXtish symlink $src -> $dest (special case)"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
- test ! -f "$src" &&
|
||||||
|
+ test "x$src" != "x`(ls -ld $src | awk '{print $NF}') 2>/dev/null`" &&
|
||||||
|
rm -f "$src"
|
||||||
|
|
||||||
|
if test -f "$src"; then
|
Loading…
x
Reference in New Issue
Block a user