File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,29 @@ class Octobuild < Formula
2222 depends_on "openssl@3"
2323 end
2424
25+ resource "ipc-rs" do
26+ on_linux do
27+ on_arm do
28+ url "https://github.com/octobuild/ipc-rs/archive/e8d76ee36146d4548d18ba8480bf5b5a2f116eac.tar.gz"
29+ sha256 "aaa5418086f55df5bea924848671df365e85aa57102abd0751366e1237abcff5"
30+
31+ # Apply commit from open PR https://github.com/octobuild/ipc-rs/pull/12
32+ patch do
33+ url "https://github.com/octobuild/ipc-rs/commit/1eabde12d785ceda197588490abeb15615a00dad.patch?full_index=1"
34+ sha256 "521d8161be9695480f5b578034166c8e7e15b078733d3571cd5db2a00951cdd8"
35+ end
36+ end
37+ end
38+ end
39+
2540 def install
41+ if OS . linux? && Hardware ::CPU . arm?
42+ ( buildpath /"ipc-rs" ) . install resource ( "ipc-rs" )
43+ ( buildpath /"Cargo.toml" ) . append_lines <<~TOML
44+ [patch."https://github.com/octobuild/ipc-rs"]
45+ ipc = { path = "./ipc-rs" }
46+ TOML
47+ end
2648 system "cargo" , "install" , *std_cargo_args
2749 end
2850
You can’t perform that action at this time.
0 commit comments