nix: switch to shell.nix instead of flakes
This commit is contained in:
parent
9bc182b9bc
commit
ff1fed15de
4 changed files with 18 additions and 59 deletions
17
shell.nix
Normal file
17
shell.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
cargo
|
||||
cargo-watch
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "========================================================="
|
||||
echo "Pour lancer le projet et avoir les changements en temps réel : "
|
||||
echo "- cargo watch -w content -w src -w templates -w static -x run"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue