lua-language-server: fix build with clang 12+
Work around https://github.com/NixOS/nixpkgs/issues/166205.
This commit is contained in:
parent
6104170b8c
commit
3e729ac6b5
1 changed files with 5 additions and 0 deletions
|
@ -43,6 +43,11 @@ stdenv.mkDerivation rec {
|
|||
-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 = [
|
||||
"-fcompile/ninja/${if stdenv.isDarwin then "macos" else "linux"}.ninja"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue