Unverified Commit 4a8def58 authored by Andrew Bruce's avatar Andrew Bruce Committed by GitHub
Browse files

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
parent a2db104a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 ];
  };