From 989619524b8dffc5b0490aff6f611da3bc4956b5 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 8 Sep 2024 18:52:50 -0500 Subject: [PATCH] universal-ctags: add binary symlink for `universal-ctags` Some tools like Zoekt expect `ctags`-esque tools to have unique binary names in order to find them (turns out, there are a lot of "ctags" projects out there.) Add an alias in order to help it out. Signed-off-by: Austin Seipp --- pkgs/development/tools/misc/universal-ctags/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/misc/universal-ctags/default.nix b/pkgs/development/tools/misc/universal-ctags/default.nix index 3297775bc53e..09186886d507 100644 --- a/pkgs/development/tools/misc/universal-ctags/default.nix +++ b/pkgs/development/tools/misc/universal-ctags/default.nix @@ -60,6 +60,11 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs misc/* ''; + # some tools like 'zoekt' want an unambiguous binary name, so give it to them + postInstall = '' + ln -s $out/bin/ctags $out/bin/universal-ctags + ''; + doCheck = true; checkFlags = [