Files
lair.moe/shell.nix
T

26 lines
404 B
Nix
Raw Normal View History

2025-07-03 01:37:41 +03:00
{ pkgs ? import <nixpkgs> {} }:
let
pypkgs = pkgs.python3Packages;
in
pkgs.mkShell {
name = "codrs.ru";
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
'';
}