about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/8.8.2.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-08-12 15:56:04 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2020-08-17 23:51:59 -0500
commit0be29459d689b1b8adf79a3d74085ba9006c9cf4 (patch)
treeae0d5d1cedf9b330487803a0a1cbaf0bda3c8186 /pkgs/development/compilers/ghc/8.8.2.nix
parent074bc78cc8749faa31729096b65f2ef51b10abeb (diff)
ghc: set Stage1Only = YES on iOS
We want stage1Only here even if system == system, since we can’t run
the native arch simulator binaries locally.
Diffstat (limited to 'pkgs/development/compilers/ghc/8.8.2.nix')
-rw-r--r--pkgs/development/compilers/ghc/8.8.2.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/8.8.2.nix b/pkgs/development/compilers/ghc/8.8.2.nix
index 305226b340797..af5c5433f1bc3 100644
--- a/pkgs/development/compilers/ghc/8.8.2.nix
+++ b/pkgs/development/compilers/ghc/8.8.2.nix
@@ -60,7 +60,7 @@ let
     DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"}
     INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"}
   '' + stdenv.lib.optionalString (targetPlatform != hostPlatform) ''
-    Stage1Only = ${if targetPlatform.system == hostPlatform.system then "NO" else "YES"}
+    Stage1Only = ${if (targetPlatform.system == hostPlatform.system && !targetPlatform.isiOS) then "NO" else "YES"}
     CrossCompilePrefix = ${targetPrefix}
     HADDOCK_DOCS = NO
     BUILD_SPHINX_HTML = NO