modified: shell.nix

This commit is contained in:
wangfiox 2024-06-16 00:15:04 +08:00
parent 37e9ffeb17
commit 0df27a2b62
1 changed files with 8 additions and 0 deletions

View File

@ -6,4 +6,12 @@ pkgs.mkShell {
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension # This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details. # See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
shellHook = ''
# Set fish as the default shell
SHELL=${pkgs.fish}/bin/fish
# Configure git
git config --global user.name "wangfiox"
git config --global user.email "wangfiox@gmail.com"
'';
} }