about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-22 14:43:00 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-22 14:43:00 +0000
commit59d88c1772f530037a325997bb9ea350044b96e9 (patch)
tree2158a3a130323c28ce734c5be15d61d2e7441f2a /pkgs/development/compilers/ghc
parentd2d8d83f37118153ca92d58acca6ea22dc627fd9 (diff)
downloadnixlib-59d88c1772f530037a325997bb9ea350044b96e9.tar
nixlib-59d88c1772f530037a325997bb9ea350044b96e9.tar.gz
nixlib-59d88c1772f530037a325997bb9ea350044b96e9.tar.bz2
nixlib-59d88c1772f530037a325997bb9ea350044b96e9.tar.lz
nixlib-59d88c1772f530037a325997bb9ea350044b96e9.tar.xz
nixlib-59d88c1772f530037a325997bb9ea350044b96e9.tar.zst
nixlib-59d88c1772f530037a325997bb9ea350044b96e9.zip
* Revert r10833, it doesn't really work. Instead build ghcboot
  with Perl 5.8.

svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10834
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/boot.nix17
1 files changed, 4 insertions, 13 deletions
diff --git a/pkgs/development/compilers/ghc/boot.nix b/pkgs/development/compilers/ghc/boot.nix
index 02cb9866739c..254a9fb855a0 100644
--- a/pkgs/development/compilers/ghc/boot.nix
+++ b/pkgs/development/compilers/ghc/boot.nix
@@ -38,7 +38,7 @@ stdenv.mkDerivation {
   # The binaries for Darwin use frameworks, so fake those frameworks,
   # and create some wrapper scripts that set DYLD_FRAMEWORK_PATH so
   # that the executables work with no special setup.
-  postInstall = (if stdenv.isDarwin then ''
+  postInstall = if stdenv.isDarwin then "
 
     ensureDir $out/frameworks/GMP.framework/Versions/A
     ln -s ${gmp}/lib/libgmp.dylib $out/frameworks/GMP.framework/GMP
@@ -50,20 +50,11 @@ stdenv.mkDerivation {
     mv $out/bin $out/bin-orig
     mkdir $out/bin
     for i in $(cd $out/bin-orig && ls); do
-        echo "#! $SHELL -e" >> $out/bin/$i
-        echo "DYLD_FRAMEWORK_PATH=$out/frameworks exec $out/bin-orig/$i -framework-path $out/frameworks \"\$@\"" >> $out/bin/$i
+        echo \"#! $SHELL -e\" >> $out/bin/$i
+        echo \"DYLD_FRAMEWORK_PATH=$out/frameworks exec $out/bin-orig/$i -framework-path $out/frameworks \\\"\\$@\\\"\" >> $out/bin/$i
         chmod +x $out/bin/$i
     done
 
-  '' else "") + ''
-
-    # Hack for Perl 5.10 compatibility ($* no longer works).
-    substituteInPlace $out/lib/*/ghc-asm --replace 'local($*) = 1;' '
-      BEGIN {
-        require overload; overload::constant( qr => sub { "(?m:$_[1])" } );
-      }
-    '
-  
-  '';
+  " else "";
 
 }