3
0
Fork 0
forked from mirrors/nixpkgs

rtags: fix build

This commit is contained in:
Azat Bahawi 2022-05-21 14:14:45 +03:00
parent 505ffa2ffc
commit 0552d1618d
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

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"