diff --git a/doc/build-helpers/images/dockertools.section.md b/doc/build-helpers/images/dockertools.section.md index bd89c73c174cd..199d93ae48fa0 100644 --- a/doc/build-helpers/images/dockertools.section.md +++ b/doc/build-helpers/images/dockertools.section.md @@ -909,7 +909,7 @@ Writing manifest to image destination { imageName = "nixos/nix"; imageDigest = "sha256:498fa2d7f2b5cb3891a4edf20f3a8f8496e70865099ba72540494cd3e2942634"; - sha256 = "1q6cf2pdrasa34zz0jw7pbs6lvv52rq2aibgxccbwcagwkg2qj1q"; + hash = "sha256-OEgs3uRPMb4Y629FJXAWZW9q9LqHS/A/GUqr3K5wzOA="; finalImageName = "nixos/nix"; finalImageTag = "latest"; } diff --git a/pkgs/build-support/docker/nix-prefetch-docker b/pkgs/build-support/docker/nix-prefetch-docker index f551d37cda96f..058c0be66ae45 100755 --- a/pkgs/build-support/docker/nix-prefetch-docker +++ b/pkgs/build-support/docker/nix-prefetch-docker @@ -133,7 +133,7 @@ else fi # Compute the hash. -imageHash=$(nix-hash --flat --type $hashType --base32 "$tmpFile") +imageHash=$(nix-hash --flat --type $hashType --sri "$tmpFile") # Add the downloaded file to Nix store. finalPath=$(nix-store --add-fixed "$hashType" "$tmpFile") @@ -152,7 +152,7 @@ cat <