From 22af7e8393adf8da226f5d3749059cdd8e271c33 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Tue, 27 Aug 2024 22:19:14 +0200 Subject: [PATCH] feat: add cryo --- Formula/cryo.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/cryo.rb diff --git a/Formula/cryo.rb b/Formula/cryo.rb new file mode 100644 index 0000000..56268f5 --- /dev/null +++ b/Formula/cryo.rb @@ -0,0 +1,26 @@ +class Cryo < Formula + desc "Tool to easily extract blockchain data" + homepage "https://github.com/paradigmxyz/cryo" + url "https://github.com/paradigmxyz/cryo.git", + tag: "0.2.0", + revision: "b2c221a6f4f2104e0a6022780cb44a59fed6a172" + license any_of: ["Apache-2.0", "MIT"] + head "https://github.com/paradigmxyz/cryo.git", branch: "main" + + livecheck do + url :stable + strategy :github_latest + end + + depends_on "rust" => :build + + def install + cd "crates/cli" do + system "cargo", "install", *std_cargo_args + end + end + + test do + system "#{bin}/cryo", "--help" + end +end