about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-08-07 19:24:55 +0100
committerVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-08-19 21:30:07 +0100
commit5be52ab75730a83bcb691a53a80d3ef17152782f (patch)
treeb2e16399e4be38fde6fc9bb06cdb67afb7770010 /pkgs
parent6e7ef038ee5515a39f7c924193c1fcced0626c1d (diff)
texlive.tlshell: hardcode revision numbers missing from minimal texlive.tlpdb
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/test/texlive/default.nix5
-rw-r--r--pkgs/tools/typesetting/tex/texlive/default.nix6
2 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix
index 0691dad661d71..d3894eb3fd8b0 100644
--- a/pkgs/test/texlive/default.nix
+++ b/pkgs/test/texlive/default.nix
@@ -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"
diff --git a/pkgs/tools/typesetting/tex/texlive/default.nix b/pkgs/tools/typesetting/tex/texlive/default.nix
index 7d4eb17288996..6c194e65dcdd3 100644
--- a/pkgs/tools/typesetting/tex/texlive/default.nix
+++ b/pkgs/tools/typesetting/tex/texlive/default.nix
@@ -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