@@ -3,23 +3,14 @@ class Mlx < Formula
33
44 desc "Array framework for Apple silicon"
55 homepage "https://github.com/ml-explore/mlx"
6+ url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.22.0.tar.gz"
7+ sha256 "c8c890f450a4c09704b2597c56e111fbd4eb2c75d66a9c8f1fb1096c3e2b2cbe"
68 license all_of : [
79 "MIT" , # main license
810 "Apache-2.0" , # metal-cpp resource
911 ]
1012 head "https://github.com/ml-explore/mlx.git" , branch : "main"
1113
12- stable do
13- url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.1.tar.gz"
14- sha256 "1ce949256c343a4a9fb1e53cc15f537ad2faceccbb3ad314cd47a198b534bcac"
15-
16- # fix x86 tests, upstream pr ref, https://github.com/ml-explore/mlx/pull/1691
17- patch do
18- url "https://github.com/ml-explore/mlx/commit/f3dfa36a3aa67dfc4488996bf7f218f976bef9aa.patch?full_index=1"
19- sha256 "5b798fa17ee6fccd4b031b99d8301f9fb434545f6e4ebbbd544376403c1a4c3d"
20- end
21- end
22-
2314 bottle do
2415 sha256 cellar : :any , arm64_sequoia : "575a6fdd16b8e35a74c193a8e34caace3c057e1dae8829bf8b3e5320f5c41e5a"
2516 sha256 cellar : :any , arm64_sonoma : "889879a0ab49703e93eb5ae95d973ae957b72ce7cbb4ec3ea924bd6e14dc2790"
@@ -46,12 +37,12 @@ class Mlx < Formula
4637 depends_on "openblas"
4738 end
4839
49- # https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt#L91C21-L91C97
40+ # https://github.com/ml-explore/mlx/blob/v#{version}/CMakeLists.txt#L98
5041 # Included in not_a_binary_url_prefix_allowlist.json
5142 resource "metal-cpp" do
5243 on_arm do
53- url "https://developer.apple.com/metal/cpp/files/metal-cpp_macOS15_iOS18-beta .zip"
54- sha256 "d0a7990f43c7ce666036b5649283c9965df2f19a4a41570af0617bbe93b4a6e5 "
44+ url "https://developer.apple.com/metal/cpp/files/metal-cpp_macOS15_iOS18.zip"
45+ sha256 "0433df1e0ab13c2b0becbd78665071e3fa28381e9714a3fce28a497892b8a184 "
5546 end
5647 end
5748
0 commit comments