sumneko-lua-language-server: disable cwd support only on x86-darwin

No reason that we shouldn't have it on aarch64-darwin.
This commit is contained in:
Brian Leung 2022-05-16 20:58:41 -07:00
parent 8cd45ee35f
commit 4571db9a88
No known key found for this signature in database
GPG Key ID: 3ADC75F013D678F9

View File

@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
darwin.apple_sdk.frameworks.Foundation
];
# Disable cwd support on darwin, because it requires macOS>=10.15
preConfigure = lib.optionalString stdenv.isDarwin ''
# Disable cwd support on x86 darwin, because it requires macOS>=10.15
preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
for file in 3rd/bee.lua/bee/subprocess/subprocess_posix.cpp 3rd/luamake/3rd/bee.lua/bee/subprocess/subprocess_posix.cpp; do
substituteInPlace $file --replace '#define USE_POSIX_SPAWN 1' ""
done