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