summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive
diff options
context:
space:
mode:
authorVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-08-28 18:27:22 +0100
committerVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-08-29 16:16:15 +0100
commit830ec779587620fcfb2c577a7810ad77ac02832e (patch)
tree3b283b34cf7792e7c160a0677f2b3c66b96a086d /pkgs/tools/typesetting/tex/texlive
parentb0b94da0dc983e8ad5b5be55e029616a15de8f2c (diff)
downloadnixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.tar
nixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.tar.gz
nixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.tar.bz2
nixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.tar.lz
nixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.tar.xz
nixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.tar.zst
nixpkgs-830ec779587620fcfb2c577a7810ad77ac02832e.zip
texlive.bin: drop cleanBrokenLinks
Diffstat (limited to 'pkgs/tools/typesetting/tex/texlive')
-rw-r--r--pkgs/tools/typesetting/tex/texlive/bin.nix11
1 files changed, 1 insertions, 10 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix
index 4ec3cadd870..31720ae8022 100644
--- a/pkgs/tools/typesetting/tex/texlive/bin.nix
+++ b/pkgs/tools/typesetting/tex/texlive/bin.nix
@@ -84,20 +84,12 @@ let
     ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
       "BUILDCC=${buildPackages.stdenv.cc.targetPrefix}cc";
 
-    # clean broken links to stuff not built
-    cleanBrokenLinks = ''
-      for f in "$out"/bin/*; do
-        if [[ ! -x "$f" ]]; then rm "$f"; fi
-      done
-    '';
-
     # move binaries to corresponding split outputs, based on content of texlive.tlpdb
     binToOutput = lib.listToAttrs
       (lib.concatMap
         (n: map (v: { name = v; value = builtins.replaceStrings [ "-" ] [ "_" ] n; }) binPackages.${n}.binfiles or [ ])
         (builtins.attrNames binPackages));
 
-    # (must be run after cleanBrokenLinks)
     moveBins = ''
       for bin in "$out/bin"/* ; do
         bin="''${bin##*/}"
@@ -120,7 +112,6 @@ let
   withLuaJIT = !(stdenv.hostPlatform.isPower && stdenv.hostPlatform.is64bit) && !stdenv.hostPlatform.isRiscV;
 in rec { # un-indented
 
-inherit (common) cleanBrokenLinks;
 texliveYear = year;
 
 
@@ -198,7 +189,7 @@ core = stdenv.mkDerivation rec {
   '' + /* install himktables in separate output for use in cross compilation */ ''
      mkdir -p $dev/bin
      cp texk/web2c/.libs/himktables $dev/bin/himktables
-  '' + cleanBrokenLinks + common.moveBins;
+  '' + common.moveBins;
 
   setupHook = ./setup-hook.sh; # TODO: maybe texmf-nix -> texmf (and all references)
   passthru = { inherit version buildInputs; };