Skip to content

Commit 70da825

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.devops/nix/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ 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+
echo $PATH
164+
'';
165+
160166
nativeBuildInputs =
161167
[
162168
cmake

0 commit comments

Comments
 (0)