diff options
author | Dennis Gosnell <cdep.illabout@gmail.com> | 2024-03-23 10:33:22 +0900 |
---|---|---|
committer | Dennis Gosnell <cdep.illabout@gmail.com> | 2024-03-23 10:33:22 +0900 |
commit | 2e91dc65e490441b5c186e7a5e47df965caac2c3 (patch) | |
tree | 7f4047ee770665a99c069ce6c9b0850c0af04134 /pkgs/build-support | |
parent | 1197d0d7e64d7567a2d5ed9f7c992ccc7e67d76a (diff) |
dockerTools: add streamed image as passthru to buildLayeredImage
This is convenient for debugging the underlying streamed image used by `dockerTools.buildLayeredImage`. Here's an example of how you might use this: ```console $ nix repl ./. nix-repl> dockerTools.examples.nginx.passthru.stream «derivation /nix/store/9zczmlp2kraszx4ssmh6fawnlnsa5a4n-stream-nginx-container.drv» ```
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/docker/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index ea464ebea18c8..146de2b7b3d8f 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -523,7 +523,7 @@ rec { runCommand "${baseNameOf name}.tar${compress.ext}" { inherit (stream) imageName; - passthru = { inherit (stream) imageTag; }; + passthru = { inherit (stream) imageTag; inherit stream; }; nativeBuildInputs = compress.nativeInputs; } "${stream} | ${compress.compress} > $out" ); |