Skip to content

Commit

Permalink
add /usr/bin to path for building MetalKit with xcrun
Browse files Browse the repository at this point in the history
Fixes #6117
  • Loading branch information
josephst committed Mar 17, 2024
1 parent c47cf41 commit 042c10f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devops/nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ effectiveStdenv.mkDerivation (
substituteInPlace ./*.py --replace "/usr/bin/env python" "${llama-python}/bin/python"
'';

# requires sandboxing to be off or relaxed on MacOS (off by default)
preConfigure = lib.optionals useMetalKit ''
export PATH=/usr/bin:$PATH # make sure /usr/bin/xcrun is on PATH
'';

nativeBuildInputs =
[
cmake
Expand Down

0 comments on commit 042c10f

Please sign in to comment.