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

probe-rs-tools 0.24.0 (new formula) #192348

Merged
merged 2 commits into from
Oct 1, 2024
Merged
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
28 changes: 28 additions & 0 deletions Formula/p/probe-rs-tools.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class ProbeRsTools < Formula
desc "Collection of on chip debugging tools to communicate with microchips"
homepage "https://probe.rs"
url "https://github.com/probe-rs/probe-rs/archive/refs/tags/v0.24.0.tar.gz"
sha256 "8a7477a4b04b923ef2f46a91d5491d94e50a57259efef78d4c0800a4a46e4aee"
license "Apache-2.0"
head "https://github.com/probe-rs/probe-rs.git", branch: "master"

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

chenrui333 marked this conversation as resolved.
Show resolved Hide resolved
uses_from_macos "bzip2"

on_linux do
depends_on "pkg-config" => :build
depends_on "systemd" # for libudev
end

def install
system "cargo", "install", *std_cargo_args(path: "probe-rs-tools")
end

test do
output = shell_output("#{bin}/probe-rs chip list")
assert_match "nRF52833_xxAA", output # micro:bit v2
assert_match "STM32F303VCTx", output # STM32F3DISCOVERY
end
end
Loading