lua-language-server: fix build with clang 12+

Work around https://github.com/NixOS/nixpkgs/issues/166205.
This commit is contained in:
Randy Eckenrode 2023-11-19 15:52:11 -05:00
parent 6104170b8c
commit 3e729ac6b5
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -43,6 +43,11 @@ stdenv.mkDerivation rec {
-e '/cxx_/s,$cc,clang++,' -e '/cxx_/s,$cc,clang++,'
''; '';
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
ninjaFlags = [ ninjaFlags = [
"-fcompile/ninja/${if stdenv.isDarwin then "macos" else "linux"}.ninja" "-fcompile/ninja/${if stdenv.isDarwin then "macos" else "linux"}.ninja"
]; ];