about summary refs log tree commit diff
path: root/pkgs/top-level/haskell-packages.nix
diff options
context:
space:
mode:
authormaralorn <mail@maralorn.de>2023-10-04 22:24:01 +0200
committerGitHub <noreply@github.com>2023-10-04 22:24:01 +0200
commitaa816d495869ed84a681905c45c1a2e006be2821 (patch)
tree076e0ac4cbf3f870c0c289806930d437a2bada65 /pkgs/top-level/haskell-packages.nix
parent61c12a0140c152e78835c77159f49d3354978089 (diff)
parent32c1a8c383fdff0d6647b0d9cfe3d9bb3afa3fd2 (diff)
downloadnixlib-aa816d495869ed84a681905c45c1a2e006be2821.tar
nixlib-aa816d495869ed84a681905c45c1a2e006be2821.tar.gz
nixlib-aa816d495869ed84a681905c45c1a2e006be2821.tar.bz2
nixlib-aa816d495869ed84a681905c45c1a2e006be2821.tar.lz
nixlib-aa816d495869ed84a681905c45c1a2e006be2821.tar.xz
nixlib-aa816d495869ed84a681905c45c1a2e006be2821.tar.zst
nixlib-aa816d495869ed84a681905c45c1a2e006be2821.zip
Merge pull request #252362 from sternenseemann/ghc-9.4.7
haskellPackages.ghc: 9.4.6 -> 9.4.7
Diffstat (limited to 'pkgs/top-level/haskell-packages.nix')
-rw-r--r--pkgs/top-level/haskell-packages.nix35
1 files changed, 33 insertions, 2 deletions
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index 71d3f7a7869c..1bd2853b44da 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -24,6 +24,7 @@ let
     "ghc944"
     "ghc945"
     "ghc946"
+    "ghc947"
     "ghc94"
     "ghc96"
     "ghc962"
@@ -46,6 +47,7 @@ let
     "ghc944"
     "ghc945"
     "ghc946"
+    "ghc947"
     "ghc96"
     "ghc962"
     "ghc963"
@@ -333,7 +335,31 @@ in {
       buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
       llvmPackages = pkgs.llvmPackages_12;
     };
-    ghc94 = compiler.ghc946;
+    ghc947 = callPackage ../development/compilers/ghc/9.4.7.nix {
+      bootPkgs =
+        # Building with 9.2 is broken due to
+        # https://gitlab.haskell.org/ghc/ghc/-/issues/21914
+        # Use 8.10 as a workaround where possible to keep bootstrap path short.
+
+        # On ARM text won't build with GHC 8.10.*
+        if stdenv.hostPlatform.isAarch then
+          # TODO(@sternenseemann): package bindist
+          packages.ghc902
+        # No suitable bindists for powerpc64le
+        else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
+          packages.ghc902
+        else
+          packages.ghc8107Binary;
+      inherit (buildPackages.python3Packages) sphinx;
+      # Need to use apple's patched xattr until
+      # https://github.com/xattr/xattr/issues/44 and
+      # https://github.com/xattr/xattr/issues/55 are solved.
+      inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook;
+      # Support range >= 10 && < 14
+      buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
+      llvmPackages = pkgs.llvmPackages_12;
+    };
+    ghc94 = compiler.ghc947;
     ghc962 = callPackage ../development/compilers/ghc/9.6.2.nix {
       bootPkgs =
         # For GHC 9.2 no armv7l bindists are available.
@@ -517,7 +543,12 @@ in {
       ghc = bh.compiler.ghc946;
       compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
     };
-    ghc94 = packages.ghc946;
+    ghc947 = callPackage ../development/haskell-modules {
+      buildHaskellPackages = bh.packages.ghc947;
+      ghc = bh.compiler.ghc947;
+      compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.4.x.nix { };
+    };
+    ghc94 = packages.ghc947;
     ghc962 = callPackage ../development/haskell-modules {
       buildHaskellPackages = bh.packages.ghc962;
       ghc = bh.compiler.ghc962;