Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,17 @@
// (
if elixirLanguageServer
then {
elixir-ls = beamPkgs.elixir-ls.override {inherit elixir;};
elixir-ls = (beamPkgs.elixir-ls.override {inherit elixir;}).overrideAttrs (old: {
buildPhase =
# Elixir 1.16.0 or newer
if ((builtins.compareVersions elixir.version "1.16.0") != -1)
then ''
runHook preBuild
mix do compile --no-deps-check, elixir_ls.release2
runHook postBuild
''
else old.buildPhase;
});
}
else {}
)
Expand Down

0 comments on commit cdf5e28

Please sign in to comment.