@@ -416,4 +416,15 @@ rec {
416 contents = crossPkgs.hello;
416 contents = crossPkgs.hello;
419+ # layered image where a store path is itself a symlink
420+ layeredStoreSymlink =
422+ target = pkgs.writeTextDir "dir/target" "Content doesn't matter.";
423+ symlink = pkgs.runCommandNoCC "symlink" {} "ln -s ${target} $out";
425+ pkgs.dockerTools.buildLayeredImage {
426+ name = "layeredstoresymlink";
428+ contents = [ pkgs.bash symlink ];
429+ } // { passthru = { inherit symlink; }; };