Skip to content
2 changes: 1 addition & 1 deletion pkgs/development/libraries/boehm-gc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
[ "--enable-cplusplus" ]
++ lib.optional enableLargeConfig "--enable-large-config";

doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;

# Don't run the native `strip' when cross-compiling.
dontStrip = hostPlatform != buildPlatform;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/expat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stdenv.mkDerivation rec {

outputMan = "dev"; # tiny page for a dev tool

doCheck = true;
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;

preCheck = ''
patchShebangs ./run.sh
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gdbm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0lx201q20dvc70f8a3c9s7s18z15inlxvbffph97ngvrgnyjq9cx";
};

doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;

# Linking static stubs on cygwin requires correct ordering.
# Consider upstreaming this.
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/libraries/gnutls/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ assert guileBindings -> guile != null;
let
# XXX: Gnulib's `test-select' fails on FreeBSD:
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4";
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4"
&& stdenv.buildPlatform == stdenv.hostPlatform;
in
stdenv.mkDerivation {
name = "gnutls-${version}";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libidn/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {

outputs = [ "bin" "dev" "out" "info" "devdoc" ];

doCheck = ! stdenv.isDarwin;
doCheck = (stdenv.buildPlatform == stdenv.hostPlatform) && !stdenv.isDarwin;

hardeningDisable = [ "format" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libjpeg-turbo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
checkTarget = "test";

meta = with stdenv.lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libtiff/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;

meta = with stdenv.lib; {
description = "Library and utilities for working with the TIFF image file format";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libunistring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {

# XXX: There are test failures on non-GNU systems, see
# http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html .
doCheck = stdenv ? glibc;
doCheck = (stdenv ? glibc) && (stdenv.hostPlatform == stdenv.buildPlatform);

meta = {
homepage = http://www.gnu.org/software/libunistring/;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libxml2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {

enableParallelBuilding = true;

doCheck = !stdenv.isDarwin;
doCheck = (stdenv.hostPlatform == stdenv.buildPlatform) && !stdenv.isDarwin;

crossAttrs = lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
# creating the DLL is broken ATM
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/lzo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

doCheck = true;
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;

meta = with stdenv.lib; {
description = "Real-time data (de)compression library";
Expand Down