don’t run test phase

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-03 10:50:33 +01:00
parent db23172c09
commit 6d39c62f2a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -117,3 +117,20 @@ index 4d847e280f4..874b776c1e1 100644
+ inherit config overlays; + inherit config overlays;
+ localSystem = localSystem'; + localSystem = localSystem';
}) })
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix
index 6cb494d46e5..f53cfde3bad 100644
--- a/pkgs/stdenv/generic/make-derivation.nix
+++ b/pkgs/stdenv/generic/make-derivation.nix
@@ -165,10 +165,8 @@ let
, ... } @ attrs:
let
- # TODO(@oxij, @Ericson2314): This is here to keep the old semantics, remove when
- # no package has `doCheck = true`.
- doCheck' = doCheck && stdenv.buildPlatform.canExecute stdenv.hostPlatform;
- doInstallCheck' = doInstallCheck && stdenv.buildPlatform.canExecute stdenv.hostPlatform;
+ doCheck' = config.doCheckByDefault && stdenv.buildPlatform.canExecute stdenv.hostPlatform;
+ doInstallCheck' = config.doCheckByDefault && stdenv.buildPlatform.canExecute stdenv.hostPlatform;
separateDebugInfo' = separateDebugInfo && stdenv.hostPlatform.isLinux;
outputs' = outputs ++ lib.optional separateDebugInfo' "debug";