Files
lair.moe/shell.nix
T
Sweetbread bfd9ceb93d
Docker Build and Push / build-and-push (push) Failing after 3m6s
Use Pug template generator
2026-04-08 22:57:55 +03:00

27 lines
413 B
Nix

{ pkgs ? import <nixpkgs> {} }:
let
pypkgs = pkgs.python3Packages;
in
pkgs.mkShell {
name = "lair.moe";
buildInputs = with pypkgs; [
python
python-magic
virtualenv
pkgs.dart-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
'';
}