From ee813d4b5aa4b7ab8df79002a41548e509921092 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Wed, 21 Jan 2026 19:01:40 -0500 Subject: [PATCH] python3Packages.mlx-lm: mark x86_64-darwin as bad platform This allows consumers like ramalama use availableOn on the package to conditionally require it on platforms that support mlx. --- pkgs/development/python-modules/mlx-lm/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/mlx-lm/default.nix b/pkgs/development/python-modules/mlx-lm/default.nix index 1143ebebd08f..91ffec0c3650 100644 --- a/pkgs/development/python-modules/mlx-lm/default.nix +++ b/pkgs/development/python-modules/mlx-lm/default.nix @@ -82,5 +82,9 @@ buildPythonPackage (finalAttrs: { homepage = "https://github.com/ml-explore/mlx-lm"; changelog = "https://github.com/ml-explore/mlx-lm/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; + badPlatforms = [ + # Building for x86_64 on macOS is not supported by mlx (dependency) + "x86_64-darwin" + ]; }; })