From 86e160440f25a5f3afb811d2d0660d1f275b3127 Mon Sep 17 00:00:00 2001 From: Anthony Cowley Date: Fri, 28 Apr 2017 21:35:46 -0400 Subject: [PATCH] rtags: link to libclang.dylib at absolute path on darwin --- pkgs/development/tools/rtags/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/tools/rtags/default.nix b/pkgs/development/tools/rtags/default.nix index 4f396e26bf94..6ab227dedcd9 100644 --- a/pkgs/development/tools/rtags/default.nix +++ b/pkgs/development/tools/rtags/default.nix @@ -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;