dockerTools.buildLayeredImage: tweak formatting on contentsEnv

This commit is contained in:
Graham Christensen 2019-12-16 12:36:45 -05:00
parent e1c6965beb
commit f6d75f550e
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -536,7 +536,12 @@ rec {
}:
let
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
pure = writeText "${baseName}-config.json" (builtins.toJSON {