From fa211963ed52a092836ee5bdd1423f99d620cf3c Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Wed, 27 Aug 2014 13:23:10 -0400 Subject: [PATCH] Another try at fixing the install_name_tool issue. --- pkgs/build-support/cabal/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/build-support/cabal/default.nix b/pkgs/build-support/cabal/default.nix index d73b4a1f364c..9b0ed44a6e67 100644 --- a/pkgs/build-support/cabal/default.nix +++ b/pkgs/build-support/cabal/default.nix @@ -275,8 +275,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version; ${optionalString (self.enableSharedExecutables && self.isExecutable && self.stdenv.isDarwin) '' for exe in "$out/bin/"* ; do - install_name_tool -add_rpath \ - $out/lib/${ghc.ghc.name}/${self.pname}-${self.version} $exe + install_name_tool -add_rpath $out/lib/${ghc.ghc.name}/${self.pname}-${self.version} $exe || true # Ignore failures, which seem to be due to hitting bash scripts rather than binaries done ''}