Files

27 lines
413 B
Nix
Raw Permalink Normal View History

2025-07-03 01:37:41 +03:00
{ pkgs ? import <nixpkgs> {} }:
let
pypkgs = pkgs.python3Packages;
in
pkgs.mkShell {
2025-12-31 12:01:40 +03:00
name = "lair.moe";
2025-07-03 01:37:41 +03:00
buildInputs = with pypkgs; [
python
python-magic
2025-07-03 01:37:41 +03:00
virtualenv
2026-03-31 16:09:57 +03:00
pkgs.dart-sass
2025-07-03 01:37:41 +03:00
];
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
'';
}