Merge pull request #25309 from acowley/rtags-id

rtags: link to libclang.dylib at absolute path on darwin
This commit is contained in:
Daiderd Jordan 2017-05-18 00:14:45 +02:00 committed by GitHub
commit a4f772435d

View File

@ -22,6 +22,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
postInstall = lib.optionalString stdenv.isDarwin ''
for f in $out/bin/{rc,rdm,rp}; do
install_name_tool -change @rpath/libclang.dylib ${llvmPackages.clang.cc}/lib/libclang.dylib ''${f}
done
'';
meta = { meta = {
description = "C/C++ client-server indexer based on clang"; description = "C/C++ client-server indexer based on clang";
homepage = https://github.com/andersbakken/rtags; homepage = https://github.com/andersbakken/rtags;