From 26a604cd515a05faca40d49c61713c19e0099a4b Mon Sep 17 00:00:00 2001 From: Stephen Stubbs Date: Mon, 15 Apr 2024 19:46:09 +0100 Subject: [PATCH] feature: add python venv --- python/flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/flake.nix b/python/flake.nix index 6cb2695..c7f99e3 100644 --- a/python/flake.nix +++ b/python/flake.nix @@ -13,8 +13,12 @@ { devShells = forEachSupportedSystem ({ pkgs }: { default = pkgs.mkShell { + venvDir = "venv"; packages = with pkgs; [ python311 virtualenv ] ++ - (with pkgs.python311Packages; [ pip ]); + (with pkgs.python311Packages; [ + pip + venvShellHook + ]); }; }); };