mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
add shell and flake for nix-shell or nix develop for Rust
This commit is contained in:
parent
3e5e41d028
commit
0db0890e15
3 changed files with 61 additions and 0 deletions
13
dev/rust/shell.nix
Normal file
13
dev/rust/shell.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [ cargo rustc ];
|
||||
|
||||
#inputsFrom = with pkgs; [ bat ];
|
||||
|
||||
RUST_BACKTRACE = 1;
|
||||
|
||||
shellHook = ''
|
||||
echo "Ready to make some rust!"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue