Skip to content

Commit

Permalink
Add a develop.nix file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlurak committed Oct 10, 2024
1 parent 133d799 commit faa6dae
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions develop.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
name = "rust-dev-shell";

buildInputs = with pkgs; [
rustc
cargo
rustfmt
clippy
rust-analyzer
];

shellHook = ''
echo "Welcome to the Rust development environment!"
export CARGO_INCREMENTAL=1
export RUST_BACKTRACE=1
'';
}

0 comments on commit faa6dae

Please sign in to comment.