ghc-8.4: fix build targeting arm

Fixes https://ghc.haskell.org/trac/ghc/ticket/15780
This commit is contained in:
Joe Hermaszewski 2018-12-01 09:38:42 +08:00
parent 80738ed9dc
commit 7fa0befcc7
1 changed files with 5 additions and 1 deletions

View File

@ -109,7 +109,11 @@ stdenv.mkDerivation (rec {
name = "D4388.diff";
sha256 = "0w6sdcvnqjlnlzpvnzw20b80v150ijjyjvs9548ildc1928j0w7s";
})
++ stdenv.lib.optional stdenv.isDarwin ./backport-dylib-command-size-limit.patch;
++ stdenv.lib.optional stdenv.isDarwin ./backport-dylib-command-size-limit.patch
++ stdenv.lib.optional (targetPlatform.isAarch32 || targetPlatform.isAarch64) (fetchpatch {
url = "https://git.haskell.org/ghc.git/patch/d8495549ba9d194815c2d0eaee6797fc7c00756a";
sha256 = "1czx12qcl088vjn7mqxvyja4b2ia2n09c28br8c777fd0xk069pm";
});
postPatch = "patchShebangs .";