3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/haskell-modules
Judah Jacobson 7131e06214 haskell: work around linker limits on Mac OS X Sierra.
The Sierra linker added a limit on the number of paths that any one
dynamic library (`*.dylib`) can reference.  This causes problems when
a Haskell library has many immediate dependencies (#22810).

We follow a similar fix as GHC/Cabal/Stack: for each derivation,
create a new directory with symlinks to all the dylibs of its immediate
dependencies, and patch its package DB to reference that directory
using the new `dynamic-library-dirs` field.

Note that this change is a no-op for older versions of GHC, i.e., they will
continue to fail on some packages as before.

Also note that this change causes the bootstrapped versions of GHC to be
recompiled, since they depend on `hscolour` which is built by
`generic-builder.nix`.

Tested by building the `stack` binary as described in #22810.
2017-05-05 09:26:58 -07:00
..
patches haskell-dbus: drop semicolons.patch; this change appears to have been included upstream 2017-04-21 16:25:52 +02:00
configuration-common.nix intero-nix-shim: init at 0.1.2 2017-05-03 23:36:02 +02:00
configuration-ghc-6.12.x.nix haskell-binary: update 0.8.x branch to latest version 2017-04-04 16:29:12 +02:00
configuration-ghc-7.0.x.nix haskell-hsdns: fix build with GHC 7.0.x and 7.2.x 2017-04-21 16:25:53 +02:00
configuration-ghc-7.2.x.nix haskell-hsdns: fix build with GHC 7.0.x and 7.2.x 2017-04-21 16:25:53 +02:00
configuration-ghc-7.4.x.nix haskell-binary: update 0.8.x branch to latest version 2017-04-04 16:29:12 +02:00
configuration-ghc-7.6.x.nix haskell-language-nix: fix build with GHC 7.6.3 2017-04-04 16:29:12 +02:00
configuration-ghc-7.8.x.nix haskell-void: fix build with GHC 7.8.x 2017-03-29 20:30:29 +02:00
configuration-ghc-7.10.x.nix haskell: ghcjs packages: Remove ghcjs-prim 2017-04-07 21:41:01 +02:00
configuration-ghc-8.0.x.nix yesod-auth-oauth2: jailbreak because of outdated dependencies 2017-04-28 14:40:26 +02:00
configuration-ghc-head.nix haskell-old-time: fix build with GHC HEAD 2017-04-21 16:25:54 +02:00
configuration-ghcjs.nix haskell: ghcjs packages: Break dependency cycle less invasive 2017-04-07 19:02:52 +02:00
configuration-hackage2nix.yaml hackage2nix: remove postgrest/postgrest-ws from broken packages 2017-05-03 14:53:14 +02:00
configuration-halvm-2.4.0.nix Init HaLVM at 2.4.0 2017-03-10 19:31:12 -06:00
configuration-nix.nix gi-webkit2: fix gi-javascriptcore dependency 2017-05-01 15:21:57 -04:00
default.nix haskell-packages: factor package set construction in new file 2017-04-21 16:25:53 +02:00
generic-builder.nix haskell: work around linker limits on Mac OS X Sierra. 2017-05-05 09:26:58 -07:00
generic-stack-builder.nix generic Haskell builder: Don't call stack setup. 2017-04-26 20:20:36 +02:00
hackage-packages.nix hackage-packages.nix: automatic Haskell package set update 2017-05-03 10:10:45 +02:00
hoogle-local-wrapper.sh
hoogle.nix
lib.nix haskell-packages: factor package set construction in new file 2017-04-21 16:25:53 +02:00
make-package-set.nix haskellSrc2nix: preferLocalBuild and use unwrapped cabal2nix. 2017-05-01 18:21:42 -04:00
with-packages-wrapper.nix haskell: work around linker limits on Mac OS X Sierra. 2017-05-05 09:26:58 -07:00