Add Darwin support for ccls
This commit is contained in:
parent
d45ba336b2
commit
41a675258f
2 changed files with 7 additions and 2 deletions
|
@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
buildInputs = with llvmPackages; [ clang-unwrapped llvm rapidjson ];
|
||||
|
||||
cmakeFlags = [ "-DSYSTEM_CLANG=ON" ];
|
||||
cmakeFlags = [
|
||||
"-DSYSTEM_CLANG=ON"
|
||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.12"
|
||||
"-DCMAKE_CXX_FLAGS=-fvisibility=hidden"
|
||||
];
|
||||
|
||||
shell = runtimeShell;
|
||||
postFixup = ''
|
||||
|
@ -37,7 +41,7 @@ stdenv.mkDerivation rec {
|
|||
description = "A c/c++ language server powered by clang";
|
||||
homepage = https://github.com/MaskRay/ccls;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8579,6 +8579,7 @@ in
|
|||
|
||||
ccls = callPackage ../development/tools/misc/ccls {
|
||||
llvmPackages = llvmPackages_latest;
|
||||
stdenv = llvmPackages_latest.stdenv;
|
||||
};
|
||||
|
||||
credstash = with python3Packages; toPythonApplication credstash;
|
||||
|
|
Loading…
Reference in a new issue