From 4a8def58feb660f2cf411b3f05fd1d2d45155427 Mon Sep 17 00:00:00 2001 From: Andrew Bruce Date: Thu, 15 Feb 2024 10:36:52 +0000 Subject: [PATCH] vimPlugins.elixir-tools-nvim: fix credo-language-server (#275505) Credo language server gets broken by patchShebangs in its current form. -S without a command in the path causes the 'elixir' part of this shebang to be removed. This is because the following line defaults to 'true', which produces a blank string: https://github.com/NixOS/nixpkgs/blob/b0d1fe9a32113e0269fae0ea6dd00e5604ccf6a9/pkgs/build-support/setup-hooks/patch-shebangs.sh#L91 --- pkgs/applications/editors/vim/plugins/overrides.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 21267a14230f..2bf8445ad250 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -549,6 +549,12 @@ ''; }); + elixir-tools-nvim = super.elixir-tools-nvim.overrideAttrs { + fixupPhase = '' + patchShebangs $(find $out/bin/ -type f -not -name credo-language-server) + ''; + }; + executor-nvim = super.executor-nvim.overrideAttrs { dependencies = with self; [ nui-nvim ]; };