texlive.tlshell: hardcode revision numbers missing from minimal texlive.tlpdb

This commit is contained in:
Vincenzo Mantova 2023-08-07 19:24:55 +01:00
parent 6e7ef038ee
commit 5be52ab757
2 changed files with 7 additions and 4 deletions

View file

@ -234,9 +234,6 @@
# 'Error initialising QuantumRenderer: no suitable pipeline found'
"tlcockpit"
# 'tlmgr: config.guess script does not exist, goodbye'
"tlshell"
] ++ lib.optional stdenv.isDarwin "epspdftk"; # wish shebang is a script, not a binary!
# (1) binaries requiring -v
@ -271,7 +268,7 @@
"dt2dv" "dv2dt" "dvi2tty" "dvidvi" "dvispc" "otp2ocp" "outocp" "pmxab"
# GUI scripts that accept no argument or crash without a graphics server; please test manualy
"epspdftk" "texdoctk" "xasy"
"epspdftk" "texdoctk" "tlshell" "xasy"
# requires Cinderella, not open source and not distributed via Nixpkgs
"ketcindy"

View file

@ -352,6 +352,12 @@ let
substituteInPlace "$out"/bin/* --replace java "$interpJava"
'';
# hardcode revision numbers (since texlive.infra, tlshell are not in either system or user texlive.tlpdb)
tlshell.postFixup = ''
substituteInPlace "$out"/bin/tlshell \
--replace '[dict get $::pkgs texlive.infra localrev]' '${toString overridden."texlive.infra".revision}' \
--replace '[dict get $::pkgs tlshell localrev]' '${toString overridden.tlshell.revision}'
'';
#### dependency changes
# it seems to need it to transform fonts