Do not use install_name_tool on "executables" built by GHCJS

These executables are really .jsexe directories, and install_name_tool will fail
This commit is contained in:
Ryan Trinkle 2015-05-31 03:18:13 -04:00
parent 7fd7cf69af
commit 82bd3a5580

View File

@ -244,7 +244,7 @@ stdenv.mkDerivation ({
mv $packageConfFile $packageConfDir/$pkgId.conf
''}
${optionalString (enableSharedExecutables && isExecutable && stdenv.isDarwin && stdenv.lib.versionOlder ghc.version "7.10") ''
${optionalString (enableSharedExecutables && isExecutable && !isGhcjs && stdenv.isDarwin && stdenv.lib.versionOlder ghc.version "7.10") ''
for exe in "$out/bin/"* ; do
install_name_tool -add_rpath "$out/lib/ghc-${ghc.version}/${pname}-${version}" "$exe"
done