This commit is contained in:
Yuval Kogman 2023-07-13 22:30:13 +00:00 committed by GitHub
commit fa1a24ef25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,13 +22,17 @@
rustToolchain =
let
rust = super.rust-bin;
toolchain =
if builtins.pathExists ./rust-toolchain.toml then
rust.fromRustupToolchainFile ./rust-toolchain.toml
else if builtins.pathExists ./rust-toolchain then
rust.fromRustupToolchainFile ./rust-toolchain
else
rust.stable.latest.default;
in
if builtins.pathExists ./rust-toolchain.toml then
rust.fromRustupToolchainFile ./rust-toolchain.toml
else if builtins.pathExists ./rust-toolchain then
rust.fromRustupToolchainFile ./rust-toolchain
else
rust.stable.latest.default;
toolchain.override {
extensions = [ "rust-src" ]; # https://github.com/the-nix-way/dev-templates/issues/4
};
})
];
@ -44,6 +48,7 @@
cargo-edit
cargo-watch
rust-analyzer
evcxr
];
shellHook = ''