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:
parent
2ef304b0ab
commit
641bac80e5
|
@ -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")"
|
||||
|
|
Loading…
Reference in a new issue