From 4c83b2b646c9cc598081cf3db70e3644c491fd7b Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Fri, 10 Apr 2026 20:59:40 +0100 Subject: [PATCH] haskell.compiler.ghc: relax native requirement with 'canExecute' --- pkgs/development/compilers/ghc/common-hadrian.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ghc/common-hadrian.nix b/pkgs/development/compilers/ghc/common-hadrian.nix index 8f2541bea009..ed6582c474eb 100644 --- a/pkgs/development/compilers/ghc/common-hadrian.nix +++ b/pkgs/development/compilers/ghc/common-hadrian.nix @@ -388,7 +388,7 @@ assert !enableNativeBignum -> gmp != null; assert stdenv.buildPlatform == stdenv.hostPlatform || stdenv.hostPlatform == stdenv.targetPlatform; # It is currently impossible to cross-compile GHC with Hadrian. -assert lib.assertMsg (stdenv.buildPlatform == stdenv.hostPlatform) +assert lib.assertMsg (stdenv.buildPlatform.canExecute stdenv.hostPlatform) "GHC >= 9.6 can't be cross-compiled. If you meant to build a GHC cross-compiler, use `buildPackages`."; let