Skip to content

Commit

Permalink
lighthouse 2.0.1 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew#91984.

Co-Authored-By: Jakub Tomanik <j.tomanik@gmail.com>
Signed-off-by: rui <rui@chenrui.dev>
Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
2 people authored and BrewTestBot committed Dec 26, 2021
1 parent a7a749c commit 745ea2c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Formula/lighthouse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class Lighthouse < Formula
desc "Rust Ethereum 2.0 Client"
homepage "https://github.com/sigp/lighthouse"
url "https://github.com/sigp/lighthouse/archive/refs/tags/v2.0.1.tar.gz"
sha256 "b1ae766c0b335e963d7ebd6ab2a02386078a6b2ab688ec5da3604191a4d0d3f4"
license "Apache-2.0"

depends_on "cmake" => :build
depends_on "rust" => :build

uses_from_macos "zlib"

def install
system "cargo", "install", *std_cargo_args(path: "./lighthouse")
end

test do
assert_match "Lighthouse", shell_output("#{bin}/lighthouse --version")

http_port = free_port
fork do
exec bin/"lighthouse", "beacon_node", "--http", "--http-port=#{http_port}", "--port=#{free_port}"
end
sleep 10

output = shell_output("curl -sS -XGET http://127.0.0.1:#{http_port}/eth/v1/node/syncing")
assert_match "is_syncing", output
end
end

0 comments on commit 745ea2c

Please sign in to comment.