git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #68898 from nspin/pr/docker-image-cross
b32fd0cMatthew Bauer
pkgs/build-support/docker/default.nix+4−3
@@ -1,4 +1,5 @@
1{
1{
2+ buildPackages,
2 cacert,
3 cacert,
3 callPackage,
4 callPackage,
4 closureInfo,
5 closureInfo,
@@ -47,7 +48,7 @@ rec {
47 , imageDigest
48 , imageDigest
48 , sha256
49 , sha256
49 , os ? "linux"
50 , os ? "linux"
50− , arch ? "amd64"
51+ , arch ? buildPackages.go.GOARCH
51
52
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";
545 });
546 });
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";
663 });
664 });
664 impure = runCommand "${baseName}-config.json"
665 impure = runCommand "${baseName}-config.json"