From a5f2d4f16352676ce2ffda784baf545242a30d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 24 May 2023 15:51:20 +0100 Subject: [PATCH] cachix: build using GHC 9.4 to avoid kernel crash (cherry picked from commit 3a021d1a23f065b628f133f95306839ebf8340bc) --- pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix | 3 ++- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix index 52b15fbf4f3a..b2d32bf32c00 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -187,7 +187,8 @@ in { servant-swagger = doJailbreak super.servant-swagger; servant-client-core = doJailbreak super.servant-client-core; servant-client = doJailbreak super.servant-client; - relude = doJailbreak super.relude; + # https://github.com/kowainik/relude/issues/436 + relude = dontCheck (doJailbreak super.relude); # Fixes compilation failure with GHC >= 9.4 on aarch64-* due to an API change cborg = appendPatch (pkgs.fetchpatch { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 093b21d6db56..640593699bd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19821,7 +19821,8 @@ with pkgs; c-blosc = callPackage ../development/libraries/c-blosc { }; # justStaticExecutables is needed due to https://github.com/NixOS/nix/issues/2990 - cachix = haskell.lib.justStaticExecutables haskellPackages.cachix; + # ghc94: https://discourse.haskell.org/t/facing-mmap-4096-bytes-at-nil-cannot-allocate-memory-youre-not-alone/6259 + cachix = haskell.lib.justStaticExecutables haskell.packages.ghc94.cachix; calcium = callPackage ../development/libraries/calcium { };