summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2020-01-07 13:17:40 -0500
committerGitHub <noreply@github.com>2020-01-07 13:17:40 -0500
commitc0b70f0e35542b5d7e4ce3ebdd894b8aebc12228 (patch)
tree76b552079e37a0dcb6c1647a7f3e22b8abcc89e8 /pkgs/tools
parent97a47de1ba67c48364eb894c18fe7ba74a86092a (diff)
parent00b7680f28eeb335873303c4b745810da733aa95 (diff)
downloadnixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.tar
nixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.tar.gz
nixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.tar.bz2
nixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.tar.lz
nixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.tar.xz
nixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.tar.zst
nixpkgs-c0b70f0e35542b5d7e4ce3ebdd894b8aebc12228.zip
texlive: make updmap actually regenerate (#76826) (#76867)
* texlive: make updmap actually regenerate (#76826)

The --syncwithtrees flag only updates the config files, so run it
again without --syncwithtrees to generate the actual map files.

* ! fixup

* ! fixup

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/typesetting/tex/texlive/combine.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix
index 6622a03decc..a4b0fb99f3e 100644
--- a/pkgs/tools/typesetting/tex/texlive/combine.nix
+++ b/pkgs/tools/typesetting/tex/texlive/combine.nix
@@ -128,8 +128,6 @@ in buildEnv {
       mkdir $out/share/texmf-local
     )
   '' +
-    # updmap.cfg seems like not needing changes
-
     # now filter hyphenation patterns, in a hacky way ATM
   (let
     pnames = uniqueStrings (map (p: p.pname) pkgList.splitBin.wrong);
@@ -214,7 +212,12 @@ in buildEnv {
     texlinks.sh "$out/bin" && wrapBin
     (perl `type -P fmtutil.pl` --sys --all || true) | grep '^fmtutil' # too verbose
     #texlinks.sh "$out/bin" && wrapBin # do we need to regenerate format links?
+
+    # Disable unavailable map files
     echo y | perl `type -P updmap.pl` --sys --syncwithtrees --force
+    # Regenerate the map files (this is optional)
+    perl `type -P updmap.pl` --sys --force
+
     perl `type -P mktexlsr.pl` ./share/texmf-* # to make sure
   '' +
     # install (wrappers for) scripts, based on a list from upstream texlive