@@ -1,4 +1,6 @@
1−{ stdenv, fetchurl, gmp }:
1+{ stdenv, fetchurl, gmp
2+, buildPlatform, hostPlatform
3+}:
24
35stdenv.mkDerivation rec {
46 name = "mpfr-3.1.3";
@@ -19,10 +21,10 @@ stdenv.mkDerivation rec {
1921 hardeningDisable = [ "stackprotector" ];
2022
2123 configureFlags =
22− stdenv.lib.optional stdenv.isSunOS "--disable-thread-safe" ++
23− stdenv.lib.optional stdenv.is64bit "--with-pic";
24+ stdenv.lib.optional hostPlatform.isSunOS "--disable-thread-safe" ++
25+ stdenv.lib.optional hostPlatform.is64bit "--with-pic";
2426
25− doCheck = true;
27+ doCheck = hostPlatform == buildPlatform;
2628
2729 enableParallelBuilding = true;
2830