about summary refs log tree commit diff
path: root/nixos/tests/docker-tools-cross.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/docker-tools-cross.nix')
-rw-r--r--nixos/tests/docker-tools-cross.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/tests/docker-tools-cross.nix b/nixos/tests/docker-tools-cross.nix
index 8791ec2581279..14cb14ceeaea9 100644
--- a/nixos/tests/docker-tools-cross.nix
+++ b/nixos/tests/docker-tools-cross.nix
@@ -24,7 +24,11 @@ let
   hello1 = remoteCrossPkgs.dockerTools.buildImage {
     name = "hello1";
     tag = "latest";
-    contents = remoteCrossPkgs.hello;
+    copyToRoot = remoteCrossPkgs.buildEnv {
+      name = "image-root";
+      pathsToLink = [ "/bin" ];
+      paths = [ remoteCrossPkgs.hello ];
+    };
   };
 
   hello2 = remoteCrossPkgs.dockerTools.buildLayeredImage {