devshell/shells/rust.nix

10 lines
255 B
Nix
Raw Permalink Normal View History

2023-12-08 15:22:58 +05:30
{ pkgs }: pkgs.mkShell {
2023-12-09 12:52:56 +05:30
buildInputs = with pkgs; [
(rust-bin.stable.latest.default.override { extensions = [ "rust-src" "rust-analyzer" ]; })
];
2023-12-08 15:22:58 +05:30
shellHook = ''
export CARGO_HOME=$PWD/.nix/cargo
export PATH=$CARGO_HOME/bin:$PATH
'';
}