Created
May 28, 2026 18:36
-
-
Save leo60228/a5cd77b80269fc2222ce8eeb9923d463 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self: super: | |
| { | |
| fetchCrate = | |
| { | |
| registryDl ? "https://static.crates.io/crates", | |
| ... | |
| }@args: | |
| super.fetchCrate (args // { inherit registryDl; }); | |
| rustPlatform = super.rustPlatform.overrideScope ( | |
| self': super': { | |
| importCargoLock = | |
| { | |
| extraRegistries ? { }, | |
| ... | |
| }@args: | |
| super'.importCargoLock ( | |
| args | |
| // { | |
| extraRegistries = extraRegistries // { | |
| "https://github.com/rust-lang/crates.io-index" = "https://static.crates.io/crates"; | |
| }; | |
| } | |
| ); | |
| } | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment