···995996 <varlistentry>
997 <term><varname>doCheck</varname></term>
998- <listitem><para>If set to a non-empty string, the check phase is
999- executed, otherwise it is skipped (default). Thus you should set
1000-1001- <programlisting>
1002-doCheck = true;</programlisting>
1003-1004- in the derivation to enable checks.</para></listitem>
01005 </varlistentry>
10061007 <varlistentry>
···12801281 <varlistentry>
1282 <term><varname>doInstallCheck</varname></term>
1283- <listitem><para>If set to a non-empty string, the installCheck phase is
1284- executed, otherwise it is skipped (default). Thus you should set
1285-1286- <programlisting>doInstallCheck = true;</programlisting>
1287-1288- in the derivation to enable install checks.</para></listitem>
001289 </varlistentry>
12901291 <varlistentry>
···995996 <varlistentry>
997 <term><varname>doCheck</varname></term>
998+ <listitem><para>
999+ Controls whether the check phase is executed.
1000+ By default it is skipped, but if <varname>doCheck</varname> is set to true, the check phase is usually executed.
1001+ Thus you should set <programlisting>doCheck = true;</programlisting> in the derivation to enable checks.
1002+ The exception is cross compilation.
1003+ Cross compiled builds never run tests, no matter how <varname>doCheck</varname> is set,
1004+ as the newly-built program won't run on the platform used to build it.
1005+ </para></listitem>
1006 </varlistentry>
10071008 <varlistentry>
···12811282 <varlistentry>
1283 <term><varname>doInstallCheck</varname></term>
1284+ <listitem><para>
1285+ Controls whether the installCheck phase is executed.
1286+ By default it is skipped, but if <varname>doInstallCheck</varname> is set to true, the installCheck phase is usually executed.
1287+ Thus you should set <programlisting>doInstallCheck = true;</programlisting> in the derivation to enable install checks.
1288+ The exception is cross compilation.
1289+ Cross compiled builds never run tests, no matter how <varname>doInstallCheck</varname> is set,
1290+ as the newly-built program won't run on the platform used to build it.
1291+ </para></listitem>
1292 </varlistentry>
12931294 <varlistentry>
+1-1
pkgs/applications/editors/ed/default.nix
···1314 nativeBuildInputs = [ lzip ];
1516- doCheck = hostPlatform == buildPlatform;
1718 meta = {
19 description = "An implementation of the standard Unix editor";
···1314 nativeBuildInputs = [ lzip ];
1516+ doCheck = true; # not cross;
1718 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";
2223- doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
2425 # Don't run the native `strip' when cross-compiling.
26 dontStrip = hostPlatform != buildPlatform;
···20 [ "--enable-cplusplus" ]
21 ++ lib.optional enableLargeConfig "--enable-large-config";
2223+ doCheck = true; # not cross;
2425 # Don't run the native `strip' when cross-compiling.
26 dontStrip = hostPlatform != buildPlatform;
+1-1
pkgs/development/libraries/expat/default.nix
···1516 outputMan = "dev"; # tiny page for a dev tool
1718- doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
1920 preCheck = ''
21 patchShebangs ./run.sh
···1516 outputMan = "dev"; # tiny page for a dev tool
1718+ doCheck = true; # not cross;
1920 preCheck = ''
21 patchShebangs ./run.sh
···2122 enableParallelBuilding = true;
2324- doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
25 checkTarget = "test";
2627 meta = with stdenv.lib; {
···2122 enableParallelBuilding = true;
2324+ doCheck = true; # not cross;
25 checkTarget = "test";
2627 meta = with stdenv.lib; {
+1-1
pkgs/development/libraries/libmpc/default.nix
···1819 CFLAGS = "-I${gmp.dev}/include";
2021- doCheck = hostPlatform == buildPlatform;
2223 meta = {
24 description = "Library for multiprecision complex arithmetic with exact rounding";
···1819 CFLAGS = "-I${gmp.dev}/include";
2021+ doCheck = true; # not cross;
2223 meta = {
24 description = "Library for multiprecision complex arithmetic with exact rounding";
+1-1
pkgs/development/libraries/libpng/default.nix
···3031 # 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;
3435 passthru = { inherit zlib; };
36
···3031 # 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;
3435 passthru = { inherit zlib; };
36
+1-1
pkgs/development/libraries/libsigsegv/default.nix
···1314 patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
1516- doCheck = hostPlatform == buildPlatform;
1718 meta = {
19 homepage = http://www.gnu.org/software/libsigsegv/;
···1314 patches = if enableSigbusFix then [ ./sigbus_fix.patch ] else null;
1516+ doCheck = true; # not cross;
1718 meta = {
19 homepage = http://www.gnu.org/software/libsigsegv/;
+1-1
pkgs/development/libraries/libtiff/default.nix
···2930 enableParallelBuilding = true;
3132- doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
3334 meta = with stdenv.lib; {
35 description = "Library and utilities for working with the TIFF image file format";
···2930 enableParallelBuilding = true;
3132+ doCheck = true; # not cross;
3334 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
···1213 enableParallelBuilding = true;
1415- doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
1617 meta = with stdenv.lib; {
18 description = "Real-time data (de)compression library";
···1213 enableParallelBuilding = true;
1415+ doCheck = true; # not cross;
1617 meta = with stdenv.lib; {
18 description = "Real-time data (de)compression library";
···1516 nativeBuildInputs = [ lzip ];
1718+ doCheck = true; # not cross;
19 configureFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
2021 meta = with stdenv.lib; {
+1-1
pkgs/tools/text/gnupatch/default.nix
···17 "ac_cv_func_strnlen_working=yes"
18 ];
1920- doCheck = hostPlatform == buildPlatform;
2122 meta = {
23 description = "GNU Patch, a program to apply differences to files";
···17 "ac_cv_func_strnlen_working=yes"
18 ];
1920+ doCheck = true; # not cross;
2122 meta = {
23 description = "GNU Patch, a program to apply differences to files";