diff --git a/Formula/m/mlx.rb b/Formula/m/mlx.rb index bfc6c2416cbd9..12344c0e03af1 100644 --- a/Formula/m/mlx.rb +++ b/Formula/m/mlx.rb @@ -3,12 +3,23 @@ class Mlx < Formula desc "Array framework for Apple silicon" homepage "https://github.com/ml-explore/mlx" - url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.0.tar.gz" - sha256 "41f8ff1b5367b4d1a3ca9c026e857bdcf5ec777e781a957ddfea3b21d7dfea6d" - # Main license is MIT while `metal-cpp` resource is Apache-2.0 - license all_of: ["MIT", "Apache-2.0"] + license all_of: [ + "MIT", # main license + "Apache-2.0", # metal-cpp resource + ] head "https://github.com/ml-explore/mlx.git", branch: "main" + stable do + url "https://github.com/ml-explore/mlx/archive/refs/tags/v0.21.1.tar.gz" + sha256 "1ce949256c343a4a9fb1e53cc15f537ad2faceccbb3ad314cd47a198b534bcac" + + # fix x86 tests, upstream pr ref, https://github.com/ml-explore/mlx/pull/1691 + patch do + url "https://github.com/ml-explore/mlx/commit/f3dfa36a3aa67dfc4488996bf7f218f976bef9aa.patch?full_index=1" + sha256 "5b798fa17ee6fccd4b031b99d8301f9fb434545f6e4ebbbd544376403c1a4c3d" + end + end + bottle do sha256 cellar: :any, arm64_sequoia: "fd18516eef6904ee30fff4c8a064bb5a26e2f760b160452881b737058440e991" sha256 cellar: :any, arm64_sonoma: "23800da529205b61f80056c4b23f4977f09312cce9f078f49ed369954711599e"