From 568c903529ac1ba8ac26baec03a1bdb770f53d1b Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 12 Feb 2025 12:19:37 +0000 Subject: [PATCH] texpresso: remove broken `nextonic` symlink --- pkgs/tools/typesetting/tex/texpresso/tectonic.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/typesetting/tex/texpresso/tectonic.nix b/pkgs/tools/typesetting/tex/texpresso/tectonic.nix index d06f8de181e2..f5550e2a8c82 100644 --- a/pkgs/tools/typesetting/tex/texpresso/tectonic.nix +++ b/pkgs/tools/typesetting/tex/texpresso/tectonic.nix @@ -18,6 +18,14 @@ tectonic-unwrapped.override (old: { cargoHash = "sha256-mqhbIv5r/5EDRDfP2BymXv9se2NCKxzRGqNqwqbD9A0="; # binary has a different name, bundled tests won't work doCheck = false; + postInstall = '' + ${args.postInstall or ""} + + # Remove the broken `nextonic` symlink + # It points to `tectonic`, which doesn't exist because the exe is + # renamed to texpresso-tonic + rm $out/bin/nextonic + ''; meta.mainProgram = "texpresso-tonic"; } );