Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elixir-ls 0.9.0 (new formula) #91820

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Formula/elixir-ls.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class ElixirLs < Formula
desc "Language Server and Debugger for Elixir"
homepage "https://elixir-lsp.github.io/elixir-ls"
url "https://github.com/elixir-lsp/elixir-ls/archive/refs/tags/v0.9.0.tar.gz"
sha256 "eaa2f5fd4ab9e497889e25419e4409cfaf808daca06259718668a71de8616e3f"
license "Apache-2.0"

depends_on "elixir"

def install
ENV["MIX_ENV"] = "prod"

system "mix", "local.hex", "--force"
system "mix", "local.rebar", "--force"
system "mix", "deps.get"
system "mix", "compile"
system "mix", "elixir_ls.release", "-o", libexec

bin.install_symlink libexec/"language_server.sh" => "language_server.sh"
SMillerDev marked this conversation as resolved.
Show resolved Hide resolved
end

test do
assert_predicate bin/"language_server.sh", :exist?
assert_match "", pipe_output("#{bin}/language_server.sh", "")
DaniruKun marked this conversation as resolved.
Show resolved Hide resolved
end
end