Merge pull request #170145 from marsam/fix-sumneko-lua-language-server-darwin

sumneko-lua-language-server: fix build on darwin
This commit is contained in:
Mario Rodas 2022-04-24 18:51:55 -05:00 committed by GitHub
commit 5d501c063e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
darwin.apple_sdk.frameworks.Foundation
];
# Disable cwd support on darwin, because it requires macOS>=10.15
preConfigure = lib.optionalString stdenv.isDarwin ''
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 SUPPORT_CWD 1' ""
done
'';
preBuild = ''
cd 3rd/luamake
''