Skip to content

Commit

Permalink
ghc-8.2.1: Disable package ABI shadowing check
Browse files Browse the repository at this point in the history
In an attempt to work around haskell/cabal#4728
  • Loading branch information
expipiplus1 committed Oct 18, 2017
1 parent 6a020b7 commit 843f5ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/compilers/ghc/8.2.1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ in stdenv.mkDerivation (rec {

postPatch = "patchShebangs .";

patches = [ ./ghc-gold-linker.patch ];
patches = [ ./ghc-gold-linker.patch
./shadowed-deps.patch ];

preConfigure = commonPreConfigure;

Expand Down
13 changes: 13 additions & 0 deletions pkgs/development/compilers/ghc/shadowed-deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/compiler/main/Packages.hs b/compiler/main/Packages.hs
index 949cc0f231..408794e078 100644
--- a/compiler/main/Packages.hs
+++ b/compiler/main/Packages.hs
@@ -1339,7 +1339,7 @@ validateDatabase dflags pkg_map1 =
unusable = directly_ignored `Map.union` unusable_ignored
`Map.union` unusable_broken
`Map.union` unusable_cyclic
- `Map.union` unusable_shadowed
+ -- `Map.union` unusable_shadowed

-- -----------------------------------------------------------------------------
-- When all the command-line options are in, we can process our package

0 comments on commit 843f5ec

Please sign in to comment.