From c81f7da1a01fd8edfd8721d6c15890f5d3577f7d Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Tue, 11 Jun 2024 15:01:52 +1200 Subject: [PATCH] Only cross compile for windows on x86_64-linux --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 3f924a4..3950ee0 100644 --- a/flake.nix +++ b/flake.nix @@ -49,7 +49,7 @@ # we also want cross compilation to windows. crossPlatforms = p: - lib.optional (builtins.elem config.compiler-nix-name ["ghc8107" "ghc928"]) p.mingwW64; + lib.optional (system == "x86_64-linux" && builtins.elem config.compiler-nix-name ["ghc8107" "ghc928"]) p.mingwW64; }; # CHaP input map, so we can find CHaP packages (needs to be more