about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorDaniel Haraj <dan@obsidian.systems>2016-11-09 14:26:43 -0500
committerDaniel Haraj <dan@obsidian.systems>2016-11-09 14:26:43 -0500
commitbac11893993088ade3bce7cbafe21c6dd82c27a5 (patch)
tree999b273582b197ac2a68be61e746429d43813340 /pkgs/development/compilers/ghc
parent811be5415628bb7563dc567aa26b596e894fc890 (diff)
downloadnixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.tar
nixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.tar.gz
nixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.tar.bz2
nixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.tar.lz
nixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.tar.xz
nixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.tar.zst
nixlib-bac11893993088ade3bce7cbafe21c6dd82c27a5.zip
haskell.compiler.ghcHEAD: fix patchPhase #10752
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/ghc-HEAD-dont-pass-linker-flags-via-response-files.patch20
-rw-r--r--pkgs/development/compilers/ghc/head.nix6
2 files changed, 23 insertions, 3 deletions
diff --git a/pkgs/development/compilers/ghc/ghc-HEAD-dont-pass-linker-flags-via-response-files.patch b/pkgs/development/compilers/ghc/ghc-HEAD-dont-pass-linker-flags-via-response-files.patch
new file mode 100644
index 000000000000..ebbb9326a829
--- /dev/null
+++ b/pkgs/development/compilers/ghc/ghc-HEAD-dont-pass-linker-flags-via-response-files.patch
@@ -0,0 +1,20 @@
+--- ghc/compiler/main/SysTools.hs	2016-11-09 14:03:05.304528147 -0500
++++ ghc2/compiler/main/SysTools.hs	2016-11-09 14:00:19.712934686 -0500
+@@ -421,7 +421,7 @@
+       args1 = map Option (getOpts dflags opt_c)
+       args2 = args0 ++ args1 ++ args
+   mb_env <- getGccEnv args2
+-  runSomethingResponseFile dflags cc_filter "C Compiler" p args2 mb_env
++  runSomethingFiltered dflags cc_filter "C Compiler" p args2 mb_env
+  where
+   -- discard some harmless warnings from gcc that we can't turn off
+   cc_filter = unlines . doFilter . lines
+@@ -911,7 +911,7 @@
+       args1     = map Option (getOpts dflags opt_l)
+       args2     = args0 ++ linkargs ++ args1 ++ args
+   mb_env <- getGccEnv args2
+-  runSomethingResponseFile dflags ld_filter "Linker" p args2 mb_env
++  runSomethingFiltered dflags ld_filter "Linker" p args2 mb_env
+   where
+     ld_filter = case (platformOS (targetPlatform dflags)) of
+                   OSSolaris2 -> sunos_ld_filter
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix
index 31c66f175841..d57b6e575da5 100644
--- a/pkgs/development/compilers/ghc/head.nix
+++ b/pkgs/development/compilers/ghc/head.nix
@@ -6,18 +6,18 @@ let
   inherit (bootPkgs) ghc;
 
 in stdenv.mkDerivation rec {
-  version = "8.1.20161108";
+  version = "8.1.20161109";
   name = "ghc-${version}";
   rev = "2e8463b232054b788b73e6551947a9434aa76009";
 
   src = fetchgit {
     url = "git://git.haskell.org/ghc.git";
     inherit rev;
-    sha256 = "1x1vnb2zr2qrak72bdqh65d00q351yhn8xvv5i4i359cf2xjmgfd";
+    sha256 = "12nxai5qqnw42syhd0vzl2f9f8z28rc0fsa7g771dyzpqglak90l";
   };
 
   patches = [
-    ./ghc-8.x-dont-pass-linker-flags-via-response-files.patch   # https://github.com/NixOS/nixpkgs/issues/10752
+    ./ghc-HEAD-dont-pass-linker-flags-via-response-files.patch   # https://github.com/NixOS/nixpkgs/issues/10752
   ];
 
   postUnpack = ''