flake: impl builder interface lib.mkRustBin

This allows construction of `rust-bin` attrset on an existing `pkgs`,
instead of staging another overlayed nixpkgs. This can reduce redundant
evaluation of nixpkgs for flake-heavy users who also don't like or
cannot (due to flake dependency hell) manually instantiate nixpkgs.
This commit is contained in:
oxalica
2024-06-03 02:32:34 -04:00
parent 92089b75db
commit 305d3b088e
3 changed files with 45 additions and 13 deletions

1
lib/dist-root.nix Normal file
View File

@@ -0,0 +1 @@
"https://static.rust-lang.org/dist"