@@ -5,6 +5,7 @@ class Ollama < Formula
55 tag : "v0.21.2" ,
66 revision : "590109c8352e8d5a6206e8909b518a54a2b0a7b8"
77 license "MIT"
8+ revision 1
89 head "https://github.com/ollama/ollama.git" , branch : "main"
910
1011 # Upstream creates releases that use a stable tag (e.g., `v1.2.3`) but are
@@ -16,12 +17,12 @@ class Ollama < Formula
1617 end
1718
1819 bottle do
19- sha256 cellar : :any_skip_relocation , arm64_tahoe : "df6992f990e77de9672a6f74b2df31b525903f49723439e2adfe10aa460e66c4 "
20- sha256 cellar : :any_skip_relocation , arm64_sequoia : "9cb6c4c7b41202858d7ce67ec2e092d5df6e42550edf9583dc3f69bfb1da8e65 "
21- sha256 cellar : :any_skip_relocation , arm64_sonoma : "cc004195a39477101256c3207a6003d6b50ae77ee613798f5ecd0e7e4b52bea4 "
22- sha256 cellar : :any_skip_relocation , sonoma : "f27e8ab720bf03e686ba4ef4c4176757e0203d7e599906fe7d23abadfaba4307 "
23- sha256 cellar : :any_skip_relocation , arm64_linux : "05c99954b6c16078865d166e389588abb5c7fd2ac40e5003239c562604306164 "
24- sha256 cellar : :any_skip_relocation , x86_64_linux : "3d9f9271e950b21cbee95879e841d51b3c73409133044bcc33adba9dc79b7640 "
20+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "de7f24489b290528b2c910124794ba8b1c704cc7950e964785531c8a27d6200c "
21+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "7aa2da3f6e13c63bb59dd84985455f17f30a0082a7811288d9de63e25a5b4466 "
22+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "fd2ba929a766e1daca960565af6e99529a7e599b5c08e77333e99a8c14bc6d80 "
23+ sha256 cellar : :any_skip_relocation , sonoma : "f211d8baa6bb2bc69487b05e015509900e4a25af706424d0f15fd7addfabb08e "
24+ sha256 cellar : :any_skip_relocation , arm64_linux : "947791ec3f92bbaae1acfa8efee9786810bd80f51e60bfb2621e73e4595e3d58 "
25+ sha256 cellar : :any_skip_relocation , x86_64_linux : "0d8be852f2ffb384b2f65cd89661f6219dae51c474240466160b821163c0517f "
2526 end
2627
2728 depends_on "cmake" => :build
@@ -31,9 +32,16 @@ class Ollama < Formula
3132 on_arm do
3233 depends_on "mlx-c" => :no_linkage
3334
34- # Fixes x/imagegen/mlx wrapper generation with system-installed mlx-c headers.
35- # upstream pr ref, https://github.com/ollama/ollama/pull/14201
3635 if build . stable?
36+
37+ # Support for mlx 0.31.2, pr ref https://github.com/ollama/ollama/pull/15793
38+ patch do
39+ url "https://github.com/ollama/ollama/commit/bdd7fdd171be290099d368aacb747f9a1241299a.patch?full_index=1"
40+ sha256 "88de38e8e190f1f465288094778844146d4883aa86adaebf68efc27c46ef0127"
41+ end
42+
43+ # Fixes x/imagegen/mlx wrapper generation with system-installed mlx-c headers.
44+ # upstream pr ref, https://github.com/ollama/ollama/pull/14201
3745 patch do
3846 url "https://github.com/ollama/ollama/commit/c051122297824c223454b82f4af3afe94379e6dd.patch?full_index=1"
3947 sha256 "a22665cd1acec84f6bb53c84dd9a40f7001f2b1cbe2253aed3967b4401cde6a0"
0 commit comments