util: add shell.nix

This commit is contained in:
2025-08-22 15:40:15 +03:00
parent d35be6568e
commit c69a68c2da

23
shell.nix Normal file
View File

@@ -0,0 +1,23 @@
{ pkgs ? import <nixpkgs> {} }: let
pypkgs = pkgs.python3Packages;
in pkgs.mkShell {
name = "kolibrios.org";
buildInputs = with pypkgs; [
python
virtualenv
pkgs.nodePackages.sass
];
shellHook = ''
if [ ! -d "venv" ]; then
python -m venv .venv
fi
source .venv/bin/activate
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
fi
'';
}