git.iko.soy/typeable/nixpkgs
on master help sign in
mpfs: Fix for cross by disabling check

check phase is now only disabled by *default* for cross, but mpfr was forcing it always.

commitc54c3cb5cef4ff05ea7af017afbf8c2e294c1f2d authorJohn Ericson <Ericson2314@Yahoo.com> dateSat 3 Jun 2017, 16:57 (9 years ago) parentf75ad79
1 file changed+6−4
pkgs/development/libraries/mpfr/default.nix+6−4
pkgs/development/libraries/mpfr/default.nix+6−4
@@ -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