dockerTools.buildImage: Allow build on darwin (#132640)

Indeed Docker can not run darwin exes, but darwin can build
Docker images, as some users already do with buildLayeredImage.
This commit is contained in:
Robert Hensing 2021-08-04 12:06:06 +02:00 committed by GitHub
parent 2ef304b0ab
commit 641bac80e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -549,8 +549,6 @@ rec {
then tag
else
lib.head (lib.strings.splitString "-" (baseNameOf result.outPath));
# Docker can't be made to run darwin binaries
meta.badPlatforms = lib.platforms.darwin;
} ''
${lib.optionalString (tag == null) ''
outName="$(basename "$out")"