We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
xcrun
1 parent c47cf41 commit 92a678aCopy full SHA for 92a678a
.devops/nix/package.nix
@@ -4,6 +4,7 @@
4
config,
5
stdenv,
6
mkShell,
7
+ runCommand,
8
cmake,
9
ninja,
10
pkg-config,
@@ -87,6 +88,13 @@ let
87
88
]
89
);
90
91
+ darwinSymlinks = runCommand "darwin-build-symlinks" {
92
+ __impureHostDeps = [ "/usr/bin/xcrun" ];
93
+ } ''
94
+ mkdir -p $out/bin
95
+ ln -s /usr/bin/xcrun $out/bin
96
+ '';
97
+
98
# apple_sdk is supposed to choose sane defaults, no need to handle isAarch64
99
# separately
100
darwinBuildInputs =
@@ -173,6 +181,8 @@ effectiveStdenv.mkDerivation (
173
181
174
182
++ optionals (effectiveStdenv.hostPlatform.isGnu && enableStatic) [
175
183
glibc.static
184
+ ] ++ optionals (effectiveStdenv.isDarwin && useMetalKit) [
185
+ darwinSymlinks
176
186
];
177
187
178
188
buildInputs =
0 commit comments