mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
dockerTools.buildLayeredImage: tweak formatting on contentsEnv
This commit is contained in:
parent
e1c6965beb
commit
f6d75f550e
@ -536,7 +536,12 @@ rec {
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
baseName = baseNameOf name;
|
baseName = baseNameOf name;
|
||||||
contentsEnv = symlinkJoin { name = "bulk-layers"; paths = (if builtins.isList contents then contents else [ contents ]); };
|
contentsEnv = symlinkJoin {
|
||||||
|
name = "bulk-layers";
|
||||||
|
paths = if builtins.isList contents
|
||||||
|
then contents
|
||||||
|
else [ contents ];
|
||||||
|
};
|
||||||
|
|
||||||
configJson = let
|
configJson = let
|
||||||
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
||||||
|
Loading…
Reference in New Issue
Block a user