rtags: link to libclang.dylib at absolute path on darwin

This commit is contained in:
Anthony Cowley 2017-04-28 21:35:46 -04:00
parent ce6eb0cbbe
commit 86e160440f

View File

@ -22,6 +22,12 @@ stdenv.mkDerivation rec {
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 = {
description = "C/C++ client-server indexer based on clang";
homepage = https://github.com/andersbakken/rtags;