From 7d18d217c0b72dcb1ca38c553a499793c4ee2475 Mon Sep 17 00:00:00 2001 From: Thomas Nixon Date: Tue, 9 Jan 2024 17:23:43 +0000 Subject: [PATCH] nix: switch to venv-based shell --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 69c36e9..25d210d 100644 --- a/flake.nix +++ b/flake.nix @@ -49,10 +49,13 @@ python3.pkgs.flake8 python3.pkgs.ipython python3.pkgs.black + python3.pkgs.pip packages.darker + python3.pkgs.venvShellHook ]; + venvDir = "./venv"; postShellHook = '' - export PYTHONPATH=$(pwd):$PYTHONPATH + python -m pip install -e . ''; }); devShell = devShells.ear;