From 2d65c111910da15660e11f6de7fe78c8c023d801 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Thu, 18 Apr 2024 09:50:33 +0200 Subject: [PATCH] Auto install python deps --- devenv.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/devenv.nix b/devenv.nix index 9bff2ba..c9ba229 100644 --- a/devenv.nix +++ b/devenv.nix @@ -21,8 +21,11 @@ scripts.schwifty-src.exec = "$DEVENV_ROOT/.venv/bin/python $DEVENV_ROOT/schwifty-cli/__main__.py $@"; # https://devenv.sh/languages/ - languages.python.enable = true; - languages.python.venv.enable = true; + languages.python = { + enable = true; + venv.enable = true; + venv.requirements = ./requirements.txt; + }; # https://devenv.sh/integrations/codespaces-devcontainer/ devcontainer.enable = true;