mirror of
https://github.com/oxalica/rust-overlay.git
synced 2025-10-06 00:02:40 +02:00
16 lines
328 B
Nix
16 lines
328 B
Nix
{
|
|
channel ? "stable",
|
|
profile ? "default",
|
|
}:
|
|
with import <nixpkgs> { overlays = [ (import ../..) ]; };
|
|
mkShell {
|
|
nativeBuildInputs = [
|
|
(
|
|
if channel == "nightly" then
|
|
rust-bin.selectLatestNightlyWith (toolchain: toolchain.${profile})
|
|
else
|
|
rust-bin.${channel}.latest.${profile}
|
|
)
|
|
];
|
|
}
|