Skip to content

Commit a0dd406

Browse files
authored
Merge pull request #108 from serokell/notgne2/add-envrc
Add .envrc and fix devShell to work with more tools
2 parents 587cbcf + 63ccbd7 commit a0dd406

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.envrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io/>
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
5+
use flake

flake.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,17 @@
143143

144144
devShell = pkgs.mkShell {
145145
inputsFrom = [ self.packages.${system}.deploy-rs ];
146-
buildInputs = [ pkgs.nixUnstable pkgs.rust-analyzer pkgs.rustfmt ];
146+
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
147+
buildInputs = with pkgs; [
148+
nixUnstable
149+
cargo
150+
rustc
151+
rust-analyzer
152+
rustfmt
153+
clippy
154+
reuse
155+
rust.packages.stable.rustPlatform.rustLibSrc
156+
];
147157
};
148158

149159
checks = {

0 commit comments

Comments
 (0)