Skip to content

Commit 042c10f

Browse files
committed
add /usr/bin to path for building MetalKit with xcrun
Fixes #6117
1 parent c47cf41 commit 042c10f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.devops/nix/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ effectiveStdenv.mkDerivation (
157157
substituteInPlace ./*.py --replace "/usr/bin/env python" "${llama-python}/bin/python"
158158
'';
159159

160+
# requires sandboxing to be off or relaxed on MacOS (off by default)
161+
preConfigure = lib.optionals useMetalKit ''
162+
export PATH=/usr/bin:$PATH # make sure /usr/bin/xcrun is on PATH
163+
'';
164+
160165
nativeBuildInputs =
161166
[
162167
cmake

0 commit comments

Comments
 (0)