Merge pull request #173873 from azahi/rtags

rtags: fix build
This commit is contained in:
Artturi 2022-05-21 16:08:59 +03:00 committed by GitHub
commit b87b69fae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, cmake, llvmPackages, openssl, apple_sdk, emacs, pkg-config }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake, llvmPackages, openssl, apple_sdk, emacs, pkg-config }:
stdenv.mkDerivation rec {
pname = "rtags";
@ -21,6 +21,14 @@ stdenv.mkDerivation rec {
'';
};
# This should be fixed with the next verison bump
# https://github.com/Andersbakken/rtags/issues/1411
patches = [(fetchpatch {
name = "define-obsolete-function-alias.patch";
url = "https://github.com/Andersbakken/rtags/commit/63f18acb21e664fd92fbc19465f0b5df085b5e93.patch";
sha256 = "sha256-dmEPtnk8Pylmf5479ovHKItRZ+tJuOWuYOQbWB/si/Y=";
})];
preConfigure = ''
export LIBCLANG_CXXFLAGS="-isystem ${llvmPackages.clang.cc}/include $(llvm-config --cxxflags) -fexceptions" \
LIBCLANG_LIBDIR="${llvmPackages.clang.cc}/lib"