Skip to content

Commit f7fe126

Browse files
ElysaSrcflomonster
authored andcommitted
dev: fix clippy for rust in flake
1 parent 800d9c6 commit f7fe126

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

flake.lock

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+22-13
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@
6565
nodejs = fixedNode;
6666
};
6767

68+
rustChan = pkgs.rust-bin.stable."1.73.0".rust.override {
69+
targets = [];
70+
extensions = [
71+
"clippy"
72+
"rust-src"
73+
"rustc-dev"
74+
"rustfmt"
75+
"rust-analyzer"
76+
];
77+
};
78+
6879
scriptFiles = builtins.attrNames (builtins.readDir ./scripts);
6980
scriptBins =
7081
map (
@@ -79,28 +90,26 @@
7990
in
8091
with pkgs; {
8192
devShells.default = mkShell {
93+
nativeBuildInputs = [rustChan];
8294
buildInputs =
8395
[
84-
# API
85-
(python310.withPackages pythonPackages)
86-
poetry
87-
88-
# EDITOAST
96+
# Tools & Libs
97+
cargo-watch
98+
cargo-tarpaulin
8999
osmium-tool
90100
geos
91-
postgresql
92101
openssl
93102
pkg-config
94-
rustPackages.clippy
95-
cargo-watch
96-
cargo-tarpaulin
97-
rust-analyzer
98-
rust-bin.stable.latest.default
103+
postgresql
104+
105+
# API
106+
(python310.withPackages pythonPackages)
107+
poetry
99108

100-
# CORE
109+
# Core
101110
jdk17
102111

103-
# FRONT
112+
# Front
104113
fixedNodePackages.create-react-app
105114
fixedNodePackages.eslint
106115
fixedNodePackages.yarn

0 commit comments

Comments
 (0)