@@ -1,4 +1,5 @@
3 callPackage,
4 callPackage,
4 closureInfo,
5 closureInfo,
@@ -47,7 +48,7 @@ rec {
47 , imageDigest
48 , imageDigest
49 , os ? "linux"
50 , os ? "linux"
50− , arch ? "amd64"
51+ , arch ? buildPackages.go.GOARCH
52 # This is used to set name to the pulled image
53 # This is used to set name to the pulled image
53 , finalImageName ? imageName
54 , finalImageName ? imageName
@@ -540,7 +541,7 @@ rec {
540 configJson = let
541 configJson = let
541 pure = writeText "${baseName}-config.json" (builtins.toJSON {
542 pure = writeText "${baseName}-config.json" (builtins.toJSON {
542 inherit created config;
543 inherit created config;
543− architecture = "amd64";
544+ architecture = buildPackages.go.GOARCH;
544 os = "linux";
545 os = "linux";
546 impure = runCommand "${baseName}-standard-dynamic-date.json"
547 impure = runCommand "${baseName}-standard-dynamic-date.json"
@@ -658,7 +659,7 @@ rec {
658 baseJson = let
659 baseJson = let
659 pure = writeText "${baseName}-config.json" (builtins.toJSON {
660 pure = writeText "${baseName}-config.json" (builtins.toJSON {
660 inherit created config;
661 inherit created config;
661− architecture = "amd64";
662+ architecture = buildPackages.go.GOARCH;
662 os = "linux";
663 os = "linux";
664 impure = runCommand "${baseName}-config.json"
665 impure = runCommand "${baseName}-config.json"