diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-08-29 01:21:05 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-09-28 15:01:00 +0300 |
commit | f4dd2fed7f57782fae0b3c9c9226effc5185ab7d (patch) | |
tree | f9d23bd225c5e0d1cd893069fa2b4d251710ebe1 /pkgs/development/compilers/ghc/8.2.2.nix | |
parent | 5e84926a667d496d1c09d00df260299e853cdd03 (diff) | |
download | nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.tar nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.tar.gz nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.tar.bz2 nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.tar.lz nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.tar.xz nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.tar.zst nixlib-f4dd2fed7f57782fae0b3c9c9226effc5185ab7d.zip |
ghc: Replace meta.available checks for enableIntegerSimple
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} = true by making them do unpredictable things.
Diffstat (limited to 'pkgs/development/compilers/ghc/8.2.2.nix')
-rw-r--r-- | pkgs/development/compilers/ghc/8.2.2.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/8.2.2.nix b/pkgs/development/compilers/ghc/8.2.2.nix index 6a1914a9c2c8..aac8cf4fd220 100644 --- a/pkgs/development/compilers/ghc/8.2.2.nix +++ b/pkgs/development/compilers/ghc/8.2.2.nix @@ -15,7 +15,7 @@ , # If enabled, GHC will be built with the GPL-free but slower integer-simple # library instead of the faster but GPLed integer-gmp library. - enableIntegerSimple ? !(gmp.meta.available or false), gmp + enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp , # If enabled, use -fPIC when compiling static libs. enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform |