Fix sync script for mismatched target string in URL

In nightly 2022-02-02, aarch64-apple-darwin's rust-docs actually points
to x86_64-apple-darwin's artifact URL. Most tier 2 targets'
rust-docs also forward to -unknown-linux-gnu with the same arch.

Not sure why they do so, but URL forwarding is implemented now.
This commit is contained in:
oxalica
2022-02-03 18:51:27 +07:00
parent 9fb49daf1b
commit 264468bbc3
3 changed files with 44 additions and 8 deletions

View File

@@ -147,6 +147,10 @@
extensions = [ "rustfmt" "rustc-dev" ];
targets = [ "aarch64-unknown-linux-gnu" ];
});
} // optionalAttrs (system == "aarch64-darwin") {
url-forward = assertUrl
nightly."2022-02-02".rust-docs
"https://static.rust-lang.org/dist/2022-02-02/rust-docs-nightly-x86_64-apple-darwin.tar.xz";
};
checkDrvs = optionalAttrs (elem system [ "aarch64-linux" "x86_64-linux" ]) {