Merge pull request #157487 from tazjin/pass-through-passthru

streamLayeredImage: pass through passthru attributes
This commit is contained in:
Robert Hensing 2022-01-31 09:26:09 +01:00 committed by GitHub
commit b48539da9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -827,6 +827,8 @@ rec {
# this on, but tooling may disable this to insert the store paths more
# efficiently via other means, such as bind mounting the host store.
includeStorePaths ? true
, # Passthru arguments for the underlying derivation.
passthru ? {}
,
}:
assert
@ -987,7 +989,7 @@ rec {
result = runCommand "stream-${baseName}"
{
inherit (conf) imageName;
passthru = {
passthru = passthru // {
inherit (conf) imageTag;
# Distinguish tarballs and exes at the Nix level so functions that