From 9016df728a9d82faa183eaa87fff4542df25b191 Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Wed, 2 Jul 2025 19:56:31 +0800 Subject: [PATCH 1/6] doc(README): change DistRoot --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 175e069b..1ebb0d3b 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,18 @@ Running `nix develop` will create a shell with the default beta Rust toolchain i ``` +#### Change Default `DistRoot`: + +- An example for [RsProxy](rsproxy.cn): + +Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: + +```nix +(final: prev: { + rust-bin = rust-overlay.lib.mkRustBin {distRoot = "https://rsproxy.cn";} prev; +}) +``` + ### Migration from [nixpkgs-mozilla] 1. Change the channel URL to `https://github.com/oxalica/rust-overlay/archive/master.tar.gz`, From 22bf7ebc14cc568cbc3fb57da1cd2cf508277f31 Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Wed, 2 Jul 2025 20:08:25 +0800 Subject: [PATCH 2/6] doc(README): fix distRoot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ebb0d3b..57dad4c7 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: ```nix (final: prev: { - rust-bin = rust-overlay.lib.mkRustBin {distRoot = "https://rsproxy.cn";} prev; + rust-bin = rust-overlay.lib.mkRustBin {distRoot = "https://rsproxy.cn/dist";} prev; }) ``` From 060c80110318e1585f968a1ddfaf69108fb4e32f Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Wed, 2 Jul 2025 20:24:59 +0800 Subject: [PATCH 3/6] doc(add): reference --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 57dad4c7..17645c70 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,8 @@ Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: }) ``` +For more information, see [reference.md](./docs/reference.md). + ### Migration from [nixpkgs-mozilla] 1. Change the channel URL to `https://github.com/oxalica/rust-overlay/archive/master.tar.gz`, From 95b64f1d1911aa7acad78ee39a16040133755457 Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:36:03 +0800 Subject: [PATCH 4/6] doc: rm specific def Co-authored-by: oxalica --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17645c70..d75f9e88 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: ```nix (final: prev: { - rust-bin = rust-overlay.lib.mkRustBin {distRoot = "https://rsproxy.cn/dist";} prev; + rust-bin = rust-overlay.lib.mkRustBin { distRoot = "https://example.com/dist"; } prev; }) ``` From 766e43951871c6011384602d143047f7adc35413 Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:36:14 +0800 Subject: [PATCH 5/6] doc: rm specific def Co-authored-by: oxalica --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index d75f9e88..f882ef32 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,6 @@ Running `nix develop` will create a shell with the default beta Rust toolchain i #### Change Default `DistRoot`: -- An example for [RsProxy](rsproxy.cn): Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: From 37bd7e5963b81b33c1b93b00a4ec1faf7ecc1720 Mon Sep 17 00:00:00 2001 From: MiyakoMeow <110924386+MiyakoMeow@users.noreply.github.com> Date: Thu, 3 Jul 2025 14:38:21 +0800 Subject: [PATCH 6/6] doc: add RUSTUP_DIST_SERVER def --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f882ef32..42a90f07 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Running `nix develop` will create a shell with the default beta Rust toolchain i #### Change Default `DistRoot`: +- e.g. `RUSTUP_DIST_SERVER`=`"https://example.com"` Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: