git.iko.soy/typeable/nixpkgs
on master help sign in
patch GHC 7.8.4 on darwin to fix template haskell + hpc
commitc714842d9f2f16853b685de9f94408de86d559b2 authorJoel Taylor <me@joelt.io> dateSun 17 May 2015, 14:30 (12 years ago) parentf3162d6
2 files changed+18−2
pkgs/development/compilers/ghc/7.8.4.nix+5−2 pkgs/development/compilers/ghc/hpc-7.8.4.patch+13
pkgs/development/compilers/ghc/7.8.4.nix+5−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, ghc, perl, gmp, ncurses, libiconv }:
22
3−stdenv.mkDerivation rec {
3+stdenv.mkDerivation (rec {
44 version = "7.8.4";
55 name = "ghc-${version}";
66
@@ -45,4 +45,7 @@ stdenv.mkDerivation rec {
4545 inherit (ghc.meta) license platforms;
4646 };
4747
48−}
48+} // stdenv.lib.optionalAttrs stdenv.isDarwin {
49+ # https://ghc.haskell.org/trac/ghc/ticket/9762
50+ patches = [ ./hpc-7.8.4.patch ];
51+})
pkgs/development/compilers/ghc/hpc-7.8.4.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs
2+index 991fc57..0aad221 100644
3+--- a/compiler/cmm/CLabel.hs
4++++ b/compiler/cmm/CLabel.hs
5+@@ -877,7 +877,7 @@ labelDynamic dflags this_pkg this_mod lbl =
6+
7+ PlainModuleInitLabel m -> not (gopt Opt_Static dflags) && this_pkg /= (modulePackageId m)
8+
9+- HpcTicksLabel m -> not (gopt Opt_Static dflags) && this_pkg /= (modulePackageId m)
10++ HpcTicksLabel m -> not (gopt Opt_Static dflags) && this_mod /= m
11+
12+ -- Note that DynamicLinkerLabels do NOT require dynamic linking themselves.
13+ _ -> False