Skip to content

Commit

Permalink
nix: add devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
matt1432 committed May 18, 2024
1 parent 1af8e4d commit ae0ec43
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,20 @@

devShells = perSystem (_: pkgs: {
default = pkgs.mkShell {
strictDeps = true;

env.RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";

nativeBuildInputs = with pkgs; [
cargo
rustc

rust-analyzer-unwrapped
rustfmt
];

packages = with pkgs; [
alejandra
# ... more dev packages
];
};
});
Expand Down

0 comments on commit ae0ec43

Please sign in to comment.