From 0644b4d9483704a04ecef3134ca55549255af83d Mon Sep 17 00:00:00 2001 From: lewo Date: Sun, 3 Jun 2018 22:58:23 +0200 Subject: [PATCH] dockerTools.pullImage: expose image* attributes (#41366) Attributes `imageName` and `imageTag` are exposed if the image is built by our Nix tools but not if the image is pulled. So, we expose these attributes for convenience and homogeneity. --- pkgs/build-support/docker/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 0e10ba036a06..b01f0b722724 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -47,6 +47,8 @@ rec { }: runCommand name { + inherit imageName imageDigest; + imageTag = finalImageTag; impureEnvVars = pkgs.stdenv.lib.fetchers.proxyImpureEnvVars; outputHashMode = "flat"; outputHashAlgo = "sha256";