File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 44 config ,
55 stdenv ,
66 mkShell ,
7+ runCommand ,
78 cmake ,
89 ninja ,
910 pkg-config ,
8788 ]
8889 ) ;
8990
91+ darwinSymlinks = runCommand "darwin-build-symlinks" { } ''
92+ mkdir -p $out/bin
93+ ln -s /usr/bin/xcrun $out/bin
94+ '' ;
95+
9096 # apple_sdk is supposed to choose sane defaults, no need to handle isAarch64
9197 # separately
9298 darwinBuildInputs =
@@ -157,6 +163,8 @@ effectiveStdenv.mkDerivation (
157163 substituteInPlace ./*.py --replace "/usr/bin/env python" "${ llama-python } /bin/python"
158164 '' ;
159165
166+ __noChroot = effectiveStdenv . isDarwin && useMetalKit ;
167+
160168 nativeBuildInputs =
161169 [
162170 cmake
@@ -173,6 +181,8 @@ effectiveStdenv.mkDerivation (
173181 ]
174182 ++ optionals ( effectiveStdenv . hostPlatform . isGnu && enableStatic ) [
175183 glibc . static
184+ ] ++ optionals ( effectiveStdenv . isDarwin && useMetalKit ) [
185+ darwinSymlinks
176186 ] ;
177187
178188 buildInputs =
You can’t perform that action at this time.
0 commit comments