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 1a4c685
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions develop.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{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 1a4c685

Please sign in to comment.