zls: fix build on Darwin

(cherry picked from commit b3082cbeb6)
This commit is contained in:
Aaron Jheng 2024-11-21 09:00:21 +08:00 committed by github-actions[bot]
parent f17a91f464
commit f35a75e6c5

View File

@ -3,6 +3,7 @@
, fetchFromGitHub
, zig_0_13
, callPackage
, apple-sdk_11,
}:
stdenv.mkDerivation (finalAttrs: {
@ -23,6 +24,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ zig_0_13.hook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
postPatch = ''
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';