From 0552d1618d80a245ddeb2d7350e330782bed9a67 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 21 May 2022 14:14:45 +0300 Subject: [PATCH] rtags: fix build --- pkgs/development/tools/rtags/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/rtags/default.nix b/pkgs/development/tools/rtags/default.nix index 6693e80e1161..7ee983ef6f9b 100644 --- a/pkgs/development/tools/rtags/default.nix +++ b/pkgs/development/tools/rtags/default.nix @@ -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"