treewide: Simplify some `doCheck` calls

In anticipation of what I outline in #33599, I only simplify exactly those
`doCheck`s which are equal to `hostPlatform != buildPlatform`. I also stick a
comment next to them so I can grep for them later.

+14 -15
+1 -1
pkgs/applications/editors/ed/default.nix
··· 13 13 14 14 nativeBuildInputs = [ lzip ]; 15 15 16 - doCheck = hostPlatform == buildPlatform; 16 + doCheck = true; # not cross; 17 17 18 18 meta = { 19 19 description = "An implementation of the standard Unix editor";
+1 -1
pkgs/development/libraries/boehm-gc/default.nix
··· 20 20 [ "--enable-cplusplus" ] 21 21 ++ lib.optional enableLargeConfig "--enable-large-config"; 22 22 23 - doCheck = stdenv.buildPlatform == stdenv.hostPlatform; 23 + doCheck = true; # not cross; 24 24 25 25 # Don't run the native `strip' when cross-compiling. 26 26 dontStrip = hostPlatform != buildPlatform;
+1 -1
pkgs/development/libraries/expat/default.nix
··· 15 15 16 16 outputMan = "dev"; # tiny page for a dev tool 17 17 18 - doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 18 + doCheck = true; # not cross; 19 19 20 20 preCheck = '' 21 21 patchShebangs ./run.sh
+1 -1
pkgs/development/libraries/gdbm/default.nix
··· 8 8 sha256 = "0lx201q20dvc70f8a3c9s7s18z15inlxvbffph97ngvrgnyjq9cx"; 9 9 }; 10 10 11 - doCheck = stdenv.buildPlatform == stdenv.hostPlatform; 11 + doCheck = true; # not cross; 12 12 13 13 # Linking static stubs on cygwin requires correct ordering. 14 14 # Consider upstreaming this.
+1 -2
pkgs/development/libraries/gmp/6.x.nix
··· 1 1 { stdenv, fetchurl, m4, cxx ? true 2 2 , buildPackages 3 - , buildPlatform, hostPlatform 4 3 , withStatic ? false }: 5 4 6 5 let inherit (stdenv.lib) optional optionalString; in ··· 43 42 configureFlagsArray+=("--build=$(./configfsf.guess)") 44 43 ''; 45 44 46 - doCheck = buildPlatform == hostPlatform; 45 + doCheck = true; # not cross; 47 46 48 47 dontDisableStatic = withStatic; 49 48
+1 -1
pkgs/development/libraries/libjpeg-turbo/default.nix
··· 21 21 22 22 enableParallelBuilding = true; 23 23 24 - doCheck = stdenv.buildPlatform == stdenv.hostPlatform; 24 + doCheck = true; # not cross; 25 25 checkTarget = "test"; 26 26 27 27 meta = with stdenv.lib; {
+1 -1
pkgs/development/libraries/libmpc/default.nix
··· 18 18 19 19 CFLAGS = "-I${gmp.dev}/include"; 20 20 21 - doCheck = hostPlatform == buildPlatform; 21 + doCheck = true; # not cross; 22 22 23 23 meta = { 24 24 description = "Library for multiprecision complex arithmetic with exact rounding";
+1 -1
pkgs/development/libraries/libpng/default.nix
··· 30 30 31 31 # it's hard to cross-run tests and some check programs didn't compile anyway 32 32 makeFlags = stdenv.lib.optional (!doCheck) "check_PROGRAMS="; 33 - doCheck = hostPlatform == buildPlatform; 33 + doCheck = true; # not cross; 34 34 35 35 passthru = { inherit zlib; }; 36 36
+1 -1
pkgs/development/libraries/libsigsegv/default.nix
··· 13 13 14 14 patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null; 15 15 16 - doCheck = hostPlatform == buildPlatform; 16 + doCheck = true; # not cross; 17 17 18 18 meta = { 19 19 homepage = http://www.gnu.org/software/libsigsegv/;
+1 -1
pkgs/development/libraries/libtiff/default.nix
··· 29 29 30 30 enableParallelBuilding = true; 31 31 32 - doCheck = stdenv.buildPlatform == stdenv.hostPlatform; 32 + doCheck = true; # not cross; 33 33 34 34 meta = with stdenv.lib; { 35 35 description = "Library and utilities for working with the TIFF image file format";
+1 -1
pkgs/development/libraries/lzo/default.nix
··· 12 12 13 13 enableParallelBuilding = true; 14 14 15 - doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 15 + doCheck = true; # not cross; 16 16 17 17 meta = with stdenv.lib; { 18 18 description = "Real-time data (de)compression library";
+1 -1
pkgs/development/libraries/mpfr/default.nix
··· 21 21 stdenv.lib.optional hostPlatform.isSunOS "--disable-thread-safe" ++ 22 22 stdenv.lib.optional hostPlatform.is64bit "--with-pic"; 23 23 24 - doCheck = hostPlatform == buildPlatform; 24 + doCheck = true; # not cross; 25 25 26 26 enableParallelBuilding = true; 27 27
+1 -1
pkgs/tools/system/ddrescue/default.nix
··· 15 15 16 16 nativeBuildInputs = [ lzip ]; 17 17 18 - doCheck = hostPlatform == buildPlatform; 18 + doCheck = true; # not cross; 19 19 configureFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ]; 20 20 21 21 meta = with stdenv.lib; {
+1 -1
pkgs/tools/text/gnupatch/default.nix
··· 17 17 "ac_cv_func_strnlen_working=yes" 18 18 ]; 19 19 20 - doCheck = hostPlatform == buildPlatform; 20 + doCheck = true; # not cross; 21 21 22 22 meta = { 23 23 description = "GNU Patch, a program to apply differences to files";