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

evil-helix 20250104 (new formula) #204642

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
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
37 changes: 37 additions & 0 deletions Formula/e/evil-helix.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
class EvilHelix < Formula
desc "Soft fork of the helix editor"
homepage "https://github.com/usagi-flow/evil-helix"
url "https://github.com/usagi-flow/evil-helix/archive/refs/tags/release-20250104.tar.gz"
sha256 "b03c78ea4cacd11eac8c2fb2e40c4a20e5d6d29ab151e3176876bf58c298b7b5"
license "MPL-2.0"
head "https://github.com/usagi-flow/evil-helix.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sequoia: "ef875c469d84849e51573b50474d2523c029f10309b1ed9eb15bab238893205c"
sha256 cellar: :any, arm64_sonoma: "7aad6857cd93c4e16ae9481271dc47f5f100e32c4be3609e20bc650c53ac50bd"
sha256 cellar: :any, arm64_ventura: "84890f45493d8c9477111ac3435f64858990d372ec0de53896810eed8955e32e"
sha256 cellar: :any, sonoma: "ca3d946010aa2de2dc7b4a5888701217812bf63c4a8615f476b7ff87138f0090"
sha256 cellar: :any, ventura: "f74b75ba30308f77b8d5ba83b78d8f601ce9cc0056bb3c408ce37c35783bc2df"
sha256 cellar: :any_skip_relocation, x86_64_linux: "94ab70aa754ed371252ca56342dfc44a8ee188d1f167143fbece4f7fc436b56f"
end

depends_on "rust" => :build

def install
ENV["HELIX_DEFAULT_RUNTIME"] = libexec/"runtime"
system "cargo", "install", "-vv", *std_cargo_args(path: "helix-term")
rm_r "runtime/grammars/sources/"
libexec.install "runtime"

bash_completion.install "contrib/completion/hx.bash" => "hx"
fish_completion.install "contrib/completion/hx.fish"
zsh_completion.install "contrib/completion/hx.zsh" => "_hx"
end

test do
file = "https://raw.githubusercontent.com/usagi-flow/evil-helix/refs/tags/release-#{version}/Cargo.toml"
version = shell_output("curl #{file}")&.gsub!(/.0$/i, "")
assert_match version.to_s, shell_output("#{bin}/hx --version")
assert_match "✓", shell_output("#{bin}/hx --health")
end
end
Loading