Skip to content

Commit 12687ce

Browse files
committed
chore: add ci devshell
1 parent 9db635b commit 12687ce

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

flake.nix

+19-12
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@
7878

7979
fmt = craneLib.cargoFmt commonArgs;
8080
};
81+
82+
ci_packages = with pkgs; [
83+
just
84+
];
85+
86+
dev_packages = with pkgs; [
87+
cargo-nextest
88+
graphql-client
89+
nixfmt
90+
rust-analyzer
91+
nushell
92+
] ++ ci_packages;
93+
8194
in {
8295
inherit checks;
8396

@@ -90,20 +103,14 @@
90103
};
91104

92105
devShells.default = craneLib.devShell {
93-
packages = with pkgs; [
94-
# cargo and rustc provided by default
95-
just
96-
cargo-nextest
97-
graphql-client
98-
nixfmt
99-
rust-analyzer
100-
nushell
101-
];
102-
106+
packages = dev_packages;
103107
shellHook = ''
104-
# Use nushell as default shell
105-
exec nu
108+
exec nu
106109
'';
107110
};
111+
112+
devShells.ci = craneLib.devShell {
113+
packages = ci_packages;
114+
};
108115
});
109116
}

0 commit comments

Comments
 (0)