mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
[Backport release-24.11] zls: fix build on Darwin (#357803)
This commit is contained in:
commit
4f9593aedf
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user