···108108 # Musl bindists do not exist for ghc 8.6.5, so we use 8.10.* for them
109109 if stdenv.isAarch64 || stdenv.isAarch32 then
110110 packages.ghc8107BinaryMinimal
111111+ else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
112112+ # to my (@a-m-joseph) knowledge there are no newer official binaries for this platform
113113+ packages.ghc865Binary
111114 else
112115 packages.ghc8107Binary;
113116 inherit (buildPackages.python3Packages) sphinx;
···124127 # the oldest ghc with aarch64-darwin support is 8.10.5
125128 if stdenv.isAarch64 || stdenv.isAarch32 then
126129 packages.ghc8107BinaryMinimal
130130+ else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
131131+ packages.ghc8107
127132 else
128133 packages.ghc8107Binary;
129134 inherit (buildPackages.python3Packages) sphinx;
···136141 # aarch64 ghc8107Binary exceeds max output size on hydra
137142 if stdenv.isAarch64 || stdenv.isAarch32 then
138143 packages.ghc8107BinaryMinimal
144144+ else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
145145+ packages.ghc8107
139146 else
140147 packages.ghc8107Binary;
141148 inherit (buildPackages.python3Packages) sphinx;
···147154 llvmPackages = pkgs.llvmPackages_12;
148155 };
149156 ghcHEAD = callPackage ../development/compilers/ghc/head.nix {
150150- bootPkgs = packages.ghc8107Binary;
157157+ bootPkgs =
158158+ if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
159159+ packages.ghc8107
160160+ else
161161+ packages.ghc8107Binary;
151162 inherit (buildPackages.python3Packages) sphinx;
152163 # Need to use apple's patched xattr until
153164 # https://github.com/xattr/xattr/issues/44 and