texlivePackages.texaccents: fix broken script (#410913)
This commit is contained in:
parent
68835d4f9b
commit
aebfe37dfd
@ -441,9 +441,6 @@ rec {
|
||||
# do not know how to test without a valid build.lua
|
||||
"ppmcheckpdf"
|
||||
|
||||
# *.inc files in source container rather than run
|
||||
"texaccents"
|
||||
|
||||
# 'Error initialising QuantumRenderer: no suitable pipeline found'
|
||||
"tlcockpit"
|
||||
] ++ lib.optional stdenv.hostPlatform.isDarwin "epspdftk"; # wish shebang is a script, not a binary!
|
||||
|
@ -17149,9 +17149,9 @@
|
||||
source = "0k78zyxmvijabrh08jjxfxjcdxzq6py5sbfcddrs5kn0hkf4hp9m";
|
||||
};
|
||||
texaccents-64447 = {
|
||||
run = "0xai85qn9isnrvijw9shhljlkcnvmygni18kw02gsmij0dp9c1jp";
|
||||
run = "0kq5432kl59pb0q1way09d527afjx5bh2y7jmv82f9y5cz7n3kyi";
|
||||
doc = "02185jla4hffra1wf3mgiaq8lyxh4gxgcjrb5dv3mkrw709iidcz";
|
||||
source = "1wqbdmfly54sb8q1y6ms2wg8n62w34xpbfvxvwmg5i4as4a1ycmy";
|
||||
source = "09z1nkh7x0xyzlh38yklxrdp9phg7i88fw69mphzy0cfc3ql8l0d";
|
||||
};
|
||||
texapi-54080 = {
|
||||
run = "09cnhqn4gxf0alkx0276jkpcsd0myypbn94jzsavnjq8jknp6850";
|
||||
|
@ -456,6 +456,21 @@ lib.recursiveUpdate orig rec {
|
||||
substituteInPlace "$out"/bin/latexminted --replace-fail "__file__" "\"$scriptsFolder/latexminted.py\""
|
||||
'';
|
||||
|
||||
# find files in source container, fix incompatibilities with snobol4
|
||||
texaccents.postFixup = ''
|
||||
sed -i '1s!$! -I${tl.texaccents.texsource}/source/support/texaccents!' "$out"/bin/*
|
||||
'';
|
||||
texaccents.postUnpack = ''
|
||||
if [[ -f "$out"/source/support/texaccents/grepl.inc ]] ; then
|
||||
sed -i 's!^-include "repl.inc"!-include "repl.sno"!' "$out"/source/support/texaccents/grepl.inc
|
||||
elif [[ -f "$out"/scripts/texaccents/texaccents.sno ]] ; then
|
||||
sed -i -e 's!^-include "host.inc"!-include "host.sno"!' \
|
||||
-e 's/host(2,2)/host(2,host(3))/g' \
|
||||
-e 's/host(2,3)/host(2,host(3) + 1)/g' \
|
||||
"$out"/scripts/texaccents/texaccents.sno
|
||||
fi
|
||||
'';
|
||||
|
||||
# flag lua dependency
|
||||
texblend.scriptExts = [ "lua" ];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user