Skip to content

Commit

Permalink
add nix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Apr 25, 2024
1 parent 187ea7c commit c198326
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
25 changes: 23 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/target
/Cargo.lock
# Created by https://www.toptal.com/developers/gitignore/api/rust,direnv
# Edit at https://www.toptal.com/developers/gitignore?templates=rust,direnv

### direnv ###
.direnv
.envrc

### Rust ###
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# End of https://www.toptal.com/developers/gitignore/api/rust,direnv
13 changes: 13 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
let pkgs = import <nixos-23.11> { };

in pkgs.mkShell {
nativeBuildInputs = [
# Rust
pkgs.rustc
pkgs.rustup
pkgs.rustfmt

# LSP
pkgs.rust-analyzer
];
}

0 comments on commit c198326

Please sign in to comment.