Merge pull request #188339 from amjoseph-nixpkgs/pr/hydra/dontTryToBuild

This commit is contained in:
Artturi 2022-12-27 19:43:57 +02:00 committed by GitHub
commit b536d6946a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,5 +218,12 @@ in
mkBootstrapToolsJob = drv:
assert lib.elem drv.system supportedSystems;
hydraJob' (lib.addMetaAttrs { inherit maintainers; } drv);
in lib.mapAttrsRecursiveCond (as: !lib.isDerivation as) (name: mkBootstrapToolsJob) tools;
in lib.mapAttrsRecursiveCond (as: !lib.isDerivation as) (name: mkBootstrapToolsJob)
# The `bootstrapTools.${platform}.bootstrapTools` derivation
# *unpacks* the bootstrap-files using their own `busybox` binary,
# so it will fail unless buildPlatform.canExecute hostPlatform.
# Unfortunately `bootstrapTools` also clobbers its own `system`
# attribute, so there is no way to detect this -- we must add it
# as a special case.
(builtins.removeAttrs tools ["bootstrapTools"]);
}