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

Check phase is now only disabled *by default* for cross, but this package was forcing it unconditionally.

commit54089620f5ef77f7c1ed3b5db497986423f0d0f4 authorJohn Ericson <Ericson2314@Yahoo.com> dateSun 4 Jun 2017, 13:29 (9 years ago) parentff6ab1b
1 file changed+6−2
pkgs/development/libraries/libmpc/default.nix+6−2
pkgs/development/libraries/libmpc/default.nix+6−2
@@ -1,4 +1,8 @@
1−{ fetchurl, stdenv, gmp, mpfr }:
1+{ stdenv, fetchurl
2+, gmp, mpfr
3+, buildPlatform, hostPlatform
4+}:
5+
26let
37 version = "1.0.3";
48in
@@ -14,7 +18,7 @@ stdenv.mkDerivation rec {
1418
1519 CFLAGS = "-I${gmp.dev}/include";
1620
17− doCheck = true;
21+ doCheck = hostPlatform == buildPlatform;
1822
1923 # FIXME needs gcc 4.9 in bootstrap tools
2024 hardeningDisable = [ "stackprotector" ];