···58 # calls install-strip ...
59 dontBuild = true;
6061- # 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.
64 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- +
84 ''
85 # bah, the passing gmp doesn't work, so let's add it to the final package.conf in a quick but dirty way
86 sed -i "s@^\(.*pkgName = PackageName \"rts\".*\libraryDirs = \\[\)\(.*\)@\\1\"${gmp.out}/lib\",\2@" $out/lib/ghc-${version}/package.conf
···58 # calls install-strip ...
59 dontBuild = true;
6000061 postInstall =
000000000000000000062 ''
63 # bah, the passing gmp doesn't work, so let's add it to the final package.conf in a quick but dirty way
64 sed -i "s@^\(.*pkgName = PackageName \"rts\".*\libraryDirs = \\[\)\(.*\)@\\1\"${gmp.out}/lib\",\2@" $out/lib/ghc-${version}/package.conf