terraform-providers: update nix command for nix 2.4

This commit is contained in:
zowoq 2021-11-17 10:36:40 +10:00
parent c366024777
commit 751887b1f6

View File

@ -165,7 +165,7 @@ if [[ -z "$vendorSha256" ]]; then
vendorSha256=$(echo "${BASH_REMATCH[1]#sha256:}" | head -n 1)
# Deal with nix unstable
if [[ $vendorSha256 = sha256-* ]]; then
vendorSha256=$(nix to-base32 "$vendorSha256")
vendorSha256=$(nix --extra-experimental-features nix-command hash to-base32 "$vendorSha256")
fi
fi
fi