diff --git a/pkgs/build-support/fetchurl/builder.sh b/pkgs/build-support/fetchurl/builder.sh index ac925dbcbdb6..b403ec245797 100644 --- a/pkgs/build-support/fetchurl/builder.sh +++ b/pkgs/build-support/fetchurl/builder.sh @@ -2,7 +2,7 @@ header "downloading $out from $url" -curl --fail "$url" > "$out" +curl --fail --location --max-redirs 20 "$url" > "$out" actual=$(md5sum -b "$out" | cut -c1-32) if test "$actual" != "$md5"; then