From bc92dcd08c2e02610297cd607274fcd57c30c823 Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Wed, 27 Aug 2014 13:15:33 -0400 Subject: [PATCH] Prevent install_name_tool from causing a failure when it encounters a non-Mach-O file (e.g.: a bash script). --- pkgs/build-support/cabal/ghcjs.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/build-support/cabal/ghcjs.nix b/pkgs/build-support/cabal/ghcjs.nix index d74c30180e29..f7fc515432e3 100644 --- a/pkgs/build-support/cabal/ghcjs.nix +++ b/pkgs/build-support/cabal/ghcjs.nix @@ -259,8 +259,7 @@ in ${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 ''}