From 106d3a56188a07a7e1670ea9f88e040ae4c5b99a Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 20 Jun 2026 15:35:09 -0400 Subject: [PATCH] fix: change the update-flake-hashes repo to work with the new rust.nix structure --- .forgejo/workflows/update-flake-hashes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/update-flake-hashes.yml b/.forgejo/workflows/update-flake-hashes.yml index df90d1567..61d23bfaf 100644 --- a/.forgejo/workflows/update-flake-hashes.yml +++ b/.forgejo/workflows/update-flake-hashes.yml @@ -27,7 +27,7 @@ jobs: - name: Get new toolchain hash run: | # Set the current sha256 to an empty hash to make `nix build` calculate a new one - awk '/fromToolchainFile *\{/{found=1; print; next} found && /sha256 =/{sub(/sha256 = .*/, "sha256 = lib.fakeSha256;"); found=0} 1' nix/rust.nix > temp.nix + awk '/fromToolchainName *\{/{found=1; print; next} found && /sha256 =/{sub(/sha256 = .*/, "sha256 = lib.fakeSha256;"); found=0} 1' nix/rust.nix > temp.nix mv temp.nix nix/rust.nix # Build continuwuity and filter for the new hash @@ -39,7 +39,7 @@ jobs: sed -i "s|lib.fakeSha256|\"$new_hash\"|" nix/rust.nix echo "New hash:" - awk -F'"' '/fromToolchainFile/{found=1; next} found && /sha256 =/{print $2; found=0}' nix/rust.nix + awk -F'"' '/fromToolchainName/{found=1; next} found && /sha256 =/{print $2; found=0}' nix/rust.nix echo "Expected new hash:" cat new_toolchain_hash.txt