aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
committerMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
commit80d90d9b204f7c17912740f9f414fe5d59f293ba (patch)
tree5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix
parent3a31a84c7d3e589035ad08499206aac44a81f424 (diff)
parent83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff)
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix b/infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix
index 22a9e6e25f9f..e69766bccdaa 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/compilers/ghc/8.8.4.nix
@@ -119,7 +119,11 @@ stdenv.mkDerivation (rec {
postPatch = "patchShebangs .";
# GHC is a bit confused on its cross terminology.
- preConfigure = ''
+ preConfigure = stdenv.lib.optionalString stdenv.isAarch64 ''
+ # Aarch64 allow backward bootstrapping since earlier versions are unstable.
+ find . -name \*\.cabal\* -exec sed -i -e 's/\(base.*\)4.14/\14.16/' {} \; \
+ -exec sed -i -e 's/\(prim.*\)0.6/\10.8/' {} \;
+ '' + ''
for env in $(env | grep '^TARGET_' | sed -E 's|\+?=.*||'); do
export "''${env#TARGET_}=''${!env}"
done
@@ -246,6 +250,7 @@ stdenv.mkDerivation (rec {
homepage = "http://haskell.org/ghc";
description = "The Glasgow Haskell Compiler";
maintainers = with stdenv.lib.maintainers; [ marcweber andres peti ];
+ timeout = 24 * 3600;
inherit (ghc.meta) license platforms;
};