mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
zls: fix build on Darwin
This commit is contained in:
parent
68b1892ad6
commit
b3082cbeb6
@ -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