feat(./shell.nix; ./dependencies.txt): Added env files

This commit is contained in:
Kirill committed 2025-11-13 22:49:11 +03:00
1 parent d8c50a3e94
commit 959baeb935
2 files changed
+24

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
python3
];
shellHook = ''
if [ ! -d ".venv" ]; then
python -m venv .venv
fi
source .venv/bin/activate
if [ -f "dependencies.txt" ]; then
pip install -r dependencies.txt
fi
'';
}