Add .envrc and fix devShell to work with more tools

This commit is contained in:
notgne2 2021-08-04 00:02:58 -07:00
parent 587cbcfe8d
commit 63ccbd7cdd
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8
2 changed files with 16 additions and 1 deletions

5
.envrc Normal file
View File

@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io/>
#
# SPDX-License-Identifier: MPL-2.0
use flake

View File

@ -143,7 +143,17 @@
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.deploy-rs ]; inputsFrom = [ self.packages.${system}.deploy-rs ];
buildInputs = [ pkgs.nixUnstable pkgs.rust-analyzer pkgs.rustfmt ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
buildInputs = with pkgs; [
nixUnstable
cargo
rustc
rust-analyzer
rustfmt
clippy
reuse
rust.packages.stable.rustPlatform.rustLibSrc
];
}; };
checks = { checks = {