From 25268a176b2f7e24cbe074a75046944d8fe16335 Mon Sep 17 00:00:00 2001 From: Sander Date: Sat, 23 Nov 2024 04:15:18 +0400 Subject: [PATCH] python: fix order of tasks vs enterShell --- src/modules/languages/python.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/languages/python.nix b/src/modules/languages/python.nix index 71bfbb447..55a6bf629 100644 --- a/src/modules/languages/python.nix +++ b/src/modules/languages/python.nix @@ -459,23 +459,23 @@ in description = "Initialize Python virtual environment"; exec = initVenvScript; exports = [ "PATH" "VIRTUAL_ENV" ]; - after = [ "devenv:enterShell" ]; + before = [ "devenv:enterShell" ]; }; "devenv:python:poetry" = lib.mkIf cfg.poetry.install.enable { description = "Initialize Poetry"; exec = initPoetryScript; exports = [ "PATH" ] ++ lib.optional cfg.poetry.activate.enable "VIRTUAL_ENV"; - after = [ "devenv:enterShell" ]; - before = lib.optional cfg.venv.enable "devenv:python:virtualenv"; + before = [ "devenv:enterShell" ] + ++ lib.optional cfg.venv.enable "devenv:python:virtualenv"; }; "devenv:python:uv" = lib.mkIf cfg.uv.sync.enable { description = "Initialize uv sync"; exec = initUvScript; exports = [ "PATH" ]; - after = [ "devenv:enterShell" ]; - before = lib.optional cfg.venv.enable "devenv:python:virtualenv"; + before = [ "devenv:enterShell" ] + ++ lib.optional cfg.venv.enable "devenv:python:virtualenv"; }; };