Skip to content

Commit

Permalink
python3Packages.mlx: Fix cmake FetchContent failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriella439 committed Dec 21, 2024
1 parent dcf03ba commit 0cacb8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/development/python-modules/mlx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ let
rev = "v3.11.3";
hash = "sha256-7F0Jon+1oWL7uqet5i1IgHX0fUw/+z0QwEcA3zs5xHg=";
};
fmt = fetchFromGitHub {
owner = "fmtlib";
repo = "fmt";
rev = "10.2.1";
hash = "sha256-pEltGLAHLZ3xypD/Ur4dWPWJ9BGVXwqQyKcDWVmC3co=";
};
in
buildPythonPackage rec {
pname = "mlx";
Expand Down Expand Up @@ -58,6 +64,7 @@ buildPythonPackage rec {
(lib.cmakeBool "MLX_BUILD_METAL" false)
(lib.cmakeOptionType "filepath" "FETCHCONTENT_SOURCE_DIR_GGUFLIB" "${gguf-tools}")
(lib.cmakeOptionType "filepath" "FETCHCONTENT_SOURCE_DIR_JSON" "${nlohmann_json}")
(lib.cmakeOptionType "filepath" "FETCHCONTENT_SOURCE_DIR_FMT" "${fmt}")
];
};

Expand All @@ -66,8 +73,6 @@ buildPythonPackage rec {
pybind11
xcbuild
zsh
gguf-tools
nlohmann_json
setuptools
nanobind
openmpi
Expand Down

0 comments on commit 0cacb8c

Please sign in to comment.