dockerTools: add isExe to streamLayeredImage result

gstqt5
Robert Hensing 2020-10-05 10:48:17 +02:00
parent 0c98435f70
commit 11b0106cf9
1 changed files with 7 additions and 1 deletions

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}