forked from mirrors/nixpkgs
7131e06214
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. |
||
---|---|---|
.. | ||
patches | ||
configuration-common.nix | ||
configuration-ghc-6.12.x.nix | ||
configuration-ghc-7.0.x.nix | ||
configuration-ghc-7.2.x.nix | ||
configuration-ghc-7.4.x.nix | ||
configuration-ghc-7.6.x.nix | ||
configuration-ghc-7.8.x.nix | ||
configuration-ghc-7.10.x.nix | ||
configuration-ghc-8.0.x.nix | ||
configuration-ghc-head.nix | ||
configuration-ghcjs.nix | ||
configuration-hackage2nix.yaml | ||
configuration-halvm-2.4.0.nix | ||
configuration-nix.nix | ||
default.nix | ||
generic-builder.nix | ||
generic-stack-builder.nix | ||
hackage-packages.nix | ||
hoogle-local-wrapper.sh | ||
hoogle.nix | ||
lib.nix | ||
make-package-set.nix | ||
with-packages-wrapper.nix |