diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13027f2104b0..de79cc3014c2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -119,24 +119,6 @@ with pkgs; callTest = t: t.test; }; - ### Traversal for package tests - - # Whereas most tests can be run with `nix-build -A my-package.tests`, this - # does not work for tests on a __functor attrset. - # TODO: enable these on hydra.nixos.org? - packageTests = let - getTests = attrs: - if builtins.typeOf attrs != "set" - then {} - else if lib.isDerivation attrs - then lib.recurseIntoAttrs attrs.tests or {} - else if attrs?__functor - then lib.recurseIntoAttrs attrs.tests or {} - else lib.mapAttrs (k: if k == "recurseForDerivations" then v: v else getTests) attrs; - in - getTests pkgs; - - ### BUILD SUPPORT auditBlasHook = makeSetupHook