File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 4
4
config ,
5
5
stdenv ,
6
6
mkShell ,
7
+ runCommand ,
7
8
cmake ,
8
9
ninja ,
9
10
pkg-config ,
87
88
]
88
89
) ;
89
90
91
+ darwinSymlinks = runCommand "darwin-build-symlinks" { } ''
92
+ mkdir -p $out/bin
93
+ ln -s /usr/bin/xcrun $out/bin
94
+ '' ;
95
+
90
96
# apple_sdk is supposed to choose sane defaults, no need to handle isAarch64
91
97
# separately
92
98
darwinBuildInputs =
96
102
CoreVideo
97
103
CoreGraphics
98
104
]
99
- ++ optionals useMetalKit [ MetalKit ] ;
105
+ ++ optionals useMetalKit [ MetalKit darwinSymlinks ] ;
100
106
101
107
cudaBuildInputs = with cudaPackages ; [
102
108
cuda_cccl . dev # <nv/target>
@@ -157,6 +163,8 @@ effectiveStdenv.mkDerivation (
157
163
substituteInPlace ./*.py --replace "/usr/bin/env python" "${ llama-python } /bin/python"
158
164
'' ;
159
165
166
+ __noChroot = useMetalKit && effectiveStdenv . isDarwin ;
167
+
160
168
nativeBuildInputs =
161
169
[
162
170
cmake
You can’t perform that action at this time.
0 commit comments