@@ -58,29 +58,7 @@ stdenv.mkDerivation rec {
5858 # calls install-strip ...
5959 dontBuild = true;
6060
61− # The binaries for Darwin use frameworks, so fake those frameworks,
62− # and create some wrapper scripts that set DYLD_FRAMEWORK_PATH so
63− # that the executables work with no special setup.
6461 postInstall =
65− (if stdenv.isDarwin then
66− ''
67− mkdir -p $out/frameworks/GMP.framework/Versions/A
68− ln -s ${gmp.out}/lib/libgmp.dylib $out/frameworks/GMP.framework/GMP
69− ln -s ${gmp.out}/lib/libgmp.dylib $out/frameworks/GMP.framework/Versions/A/GMP
70− # !!! fix this
71− mkdir -p $out/frameworks/GNUeditline.framework/Versions/A
72− ln -s ${libedit}/lib/libeditline.dylib $out/frameworks/GNUeditline.framework/GNUeditline
73− ln -s ${libedit}/lib/libeditline.dylib $out/frameworks/GNUeditline.framework/Versions/A/GNUeditline
74−
75− mv $out/bin $out/bin-orig
76− mkdir $out/bin
77− for i in $(cd $out/bin-orig && ls); do
78− echo \"#! $SHELL -e\" >> $out/bin/$i
79− echo \"DYLD_FRAMEWORK_PATH=$out/frameworks exec $out/bin-orig/$i -framework-path $out/frameworks \\\"\\$@\\\"\" >> $out/bin/$i
80− chmod +x $out/bin/$i
81− done
82− '' else "")
83− +
8462 ''
8563 # bah, the passing gmp doesn't work, so let's add it to the final package.conf in a quick but dirty way
8664 sed -i "s@^\(.*pkgName = PackageName \"rts\".*\libraryDirs = \\[\)\(.*\)@\\1\"${gmp.out}/lib\",\2@" $out/lib/ghc-${version}/package.conf