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 06:06:06 -04:00
committed by GitHub
parent 2ef304b0ab
commit 641bac80e5
-2
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")"