dockerTools: add isExe to streamLayeredImage result

This commit is contained in:
Robert Hensing 2020-10-05 10:48:17 +02:00
parent 0c98435f70
commit 11b0106cf9

View File

@ -819,7 +819,13 @@ rec {
'';
result = runCommand "stream-${name}" {
inherit (conf) imageName;
passthru = { inherit (conf) imageTag; };
passthru = {
inherit (conf) imageTag;
# Distinguish tarballs and exes at the Nix level so functions that
# take images can know in advance how the image is supposed to be used.
isExe = true;
};
buildInputs = [ makeWrapper ];
} ''
makeWrapper ${streamScript} $out --add-flags ${conf}