crc: fix `update.sh` not updating git hash

The update script correctly updated all version information,
but never updated the `hash` attribute for `fetchFromGitHub`,
causing the build to silently use the old version without
throwing any errors.

See https://github.com/NixOS/nixpkgs/pull/217528 for reference.

+6
+6
pkgs/applications/networking/cluster/crc/update.sh
··· 25 https://api.github.com/repos/crc-org/crc/tags | 26 jq -r "map(select(.name == \"${LATEST_TAG_NAME}\")) | .[0] | .commit.sha") 27 28 FILE_MAKEFILE=${WORKDIR}/Makefile 29 curl --silent https://raw.githubusercontent.com/crc-org/crc/${CRC_COMMIT}/Makefile >$FILE_MAKEFILE 30 ··· 44 ${NIXPKGS_CRC_FOLDER}/default.nix 45 46 sed -i "s|gitCommit = \".*\"|gitCommit = \"${CRC_COMMIT:-}\"|" \ 47 ${NIXPKGS_CRC_FOLDER}/default.nix 48 49 sed -i "s|openShiftVersion = \".*\"|openShiftVersion = \"${OPENSHIFT_VERSION:-}\"|" \
··· 25 https://api.github.com/repos/crc-org/crc/tags | 26 jq -r "map(select(.name == \"${LATEST_TAG_NAME}\")) | .[0] | .commit.sha") 27 28 + CRC_GIT_PREFETCH=$(nix-prefetch-url --unpack https://github.com/crc-org/crc/archive/${CRC_COMMIT}.tar.gz) 29 + CRC_GIT_HASH=$(nix hash to-sri --type sha256 ${CRC_GIT_PREFETCH}) 30 + 31 FILE_MAKEFILE=${WORKDIR}/Makefile 32 curl --silent https://raw.githubusercontent.com/crc-org/crc/${CRC_COMMIT}/Makefile >$FILE_MAKEFILE 33 ··· 47 ${NIXPKGS_CRC_FOLDER}/default.nix 48 49 sed -i "s|gitCommit = \".*\"|gitCommit = \"${CRC_COMMIT:-}\"|" \ 50 + ${NIXPKGS_CRC_FOLDER}/default.nix 51 + 52 + sed -i "s|gitHash = \".*\"|gitHash = \"${CRC_GIT_HASH}\"|" \ 53 ${NIXPKGS_CRC_FOLDER}/default.nix 54 55 sed -i "s|openShiftVersion = \".*\"|openShiftVersion = \"${OPENSHIFT_VERSION:-}\"|" \