templates/rust/cargo-nightly/nixpkgs+fenix/shell.nix
Kiana Sheibani 306981fd2a
fix(rust): use proper withComponents toolchain
Using this function properly links the `rustup` components together,
allowing e.g. `rust-analyzer` to find the location of `rust-src`.
2026-02-22 05:28:22 -05:00

12 lines
289 B
Nix

{ pkgs ? import <nixpkgs> {},
fenix ? builtins.getFlake "github:nix-community/fenix",
}:
let
inherit (pkgs) mkShellNoCC;
toolchain = import ./toolchain.nix fenix.packages.${pkgs.stdenv.hostPlatform.system} "dev";
in mkShellNoCC {
packages = [
toolchain
pkgs.lldb_21
];
}