Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/applications/blockchains/bitcoin-knots/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeCheckInputs = [ python3 ];

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

checkFlags = [
"LC_ALL=en_US.UTF-8"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/blockchains/bitcoin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeCheckInputs = [ python3 ];

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

checkFlags = [
"LC_ALL=en_US.UTF-8"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/go/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ lib.extendMkDerivation {
''
);

doCheck = args.doCheck or true;
doCheck = args.doCheck or (stdenv.buildPlatform.canExecute stdenv.hostPlatform);
checkPhase =
args.checkPhase or ''
runHook preCheck
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/fe/feedbackd-device-themes/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonOption "validate" (if finalAttrs.doCheck then "enabled" else "disabled"))
];

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

passthru = {
updateScript = nix-update-script { };
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/gs/gsl-lite/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
];

# Building tests is broken on Darwin.
doCheck = !stdenv.hostPlatform.isDarwin;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && !stdenv.hostPlatform.isDarwin;

meta = {
description = "Single-file header-only version of ISO C++ GSL";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/gz/gz-cmake/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeCheckInputs = [ python3 ];

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

# Extract the version by matching the tag's prefix.
passthru.updateScript = nix-update-script {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/in/iniparser/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
(lib.cmakeBool "BUILD_TESTING" finalAttrs.doCheck)
];
doCheck = true;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
nativeCheckInputs = [
ruby
ctestCheckHook
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/li/libvncserver/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
zlib
];

doCheck = enableShared;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && enableShared;

meta = with lib; {
description = "VNC server library";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/nl/nlopt/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ clangStdenv.mkDerivation (finalAttrs: {
--no-directory-urls
'';

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

postFixup = ''
substituteInPlace $out/lib/cmake/nlopt/NLoptLibraryDepends.cmake --replace-fail \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/so/sobjectizer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
];

# The tests require the shared library thanks to the patch.
doCheck = withShared;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && withShared;

# Receive semi-automated updates.
passthru.updateScript = pkgs.nix-update-script { };
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/tp/tpm2-pkcs11/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ chosenStdenv.mkDerivation (finalAttrs: {
"dev"
];

doCheck = true;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
dontStrip = true;
dontPatchELF = true;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/z3/z3/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "Z3_JAVA_JAR_INSTALLDIR" "${placeholder "java"}/share/java")
];

doCheck = true;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
checkPhase = ''
runHook preCheck

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ stdenv.mkDerivation (finalAttrs: {
nlohmann_json
];

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

postInstall = optionalString finalAttrs.doCheck ''
moveToOutput "bin/legacy_samples" "$legacy_samples"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/system/nvtop/build-nvtop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ stdenv.mkDerivation (finalAttrs: {
+ (lib.optionalString nvidia "addDriverRunpath $out/bin/nvtop");

# https://github.com/Syllo/nvtop/commit/33ec008e26a00227a666ccb11321e9971a50daf8
doCheck = !stdenv.hostPlatform.isDarwin;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && !stdenv.hostPlatform.isDarwin;

passthru = {
tests.version = testers.testVersion {
Expand Down
Loading