nicks-nix-config/rust-shell-template.nix

21 lines
452 B
Nix
Raw Normal View History

2022-10-10 16:50:15 -07:00
{ pkgs ? import <nixpkgs> {}}:
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
ruststable = (pkgs.latest.rustChannels.stable.default.override {
extensions = [
"rust-src"
];
});
in
pkgs.mkShell {
buildInputs = with pkgs; [
ruststable
2023-07-29 16:01:53 -07:00
rust-analyzer
lldb
2022-10-10 16:50:15 -07:00
];
RUST_BACKTRACE = 1;
}