diff options
author | Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> | 2022-07-01 11:05:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 13:05:30 +0200 |
commit | 86c7c0917face6c771e4244a90d22c0ec04ce68c (patch) | |
tree | 6ee7f35025e7f982602231cb144cf2dd0fca9b5f /pkgs/top-level/haskell-packages.nix | |
parent | f6b27dacd60b87b6634a643a3b5ee7db5007f534 (diff) | |
download | nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.tar nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.tar.gz nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.tar.bz2 nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.tar.lz nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.tar.xz nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.tar.zst nixlib-86c7c0917face6c771e4244a90d22c0ec04ce68c.zip |
haskell.compiler.ghc865Binary: add powerpc64le bootstrap
Diffstat (limited to 'pkgs/top-level/haskell-packages.nix')
-rw-r--r-- | pkgs/top-level/haskell-packages.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 68a323099569..b0d4a7325ced 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -108,6 +108,9 @@ in { # Musl bindists do not exist for ghc 8.6.5, so we use 8.10.* for them if stdenv.isAarch64 || stdenv.isAarch32 then packages.ghc8107BinaryMinimal + else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then + # to my (@a-m-joseph) knowledge there are no newer official binaries for this platform + packages.ghc865Binary else packages.ghc8107Binary; inherit (buildPackages.python3Packages) sphinx; @@ -124,6 +127,8 @@ in { # the oldest ghc with aarch64-darwin support is 8.10.5 if stdenv.isAarch64 || stdenv.isAarch32 then packages.ghc8107BinaryMinimal + else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then + packages.ghc8107 else packages.ghc8107Binary; inherit (buildPackages.python3Packages) sphinx; @@ -136,6 +141,8 @@ in { # aarch64 ghc8107Binary exceeds max output size on hydra if stdenv.isAarch64 || stdenv.isAarch32 then packages.ghc8107BinaryMinimal + else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then + packages.ghc8107 else packages.ghc8107Binary; inherit (buildPackages.python3Packages) sphinx; @@ -147,7 +154,11 @@ in { llvmPackages = pkgs.llvmPackages_12; }; ghcHEAD = callPackage ../development/compilers/ghc/head.nix { - bootPkgs = packages.ghc8107Binary; + bootPkgs = + if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then + packages.ghc8107 + else + packages.ghc8107Binary; inherit (buildPackages.python3Packages) sphinx; # Need to use apple's patched xattr until # https://github.com/xattr/xattr/issues/44 and |