build(env): provide Nix devShell and direnv auto-activation
- Add declarative shell.nix bundling Node 24, Biome 2.5, uv and Python 3.11 - Add .envrc with use nix for seamless environment loading on directory change - Ignore .direnv cache directory in .gitignore
This commit is contained in:
1 parent
77ead3b99a
commit
6f9026a5e6
3 files changed
+21
No files matched your search
@@ -23,6 +23,7 @@ data/
|
||||
# Environment
|
||||
.env
|
||||
*.env.local
|
||||
.direnv/
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShell {
|
||||
name = "bdinvite-dev";
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
nodejs
|
||||
biome
|
||||
uv
|
||||
python311
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "🎂 bdinvite development shell loaded"
|
||||
echo " Node: $(node --version 2>/dev/null || echo 'not found')"
|
||||
echo " Biome: $(biome --version 2>/dev/null || echo 'not found')"
|
||||
echo " uv: $(uv --version 2>/dev/null || echo 'not found')"
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user