diff --git a/templates b/templates index 7796077..c4e5bad 100644 --- a/templates +++ b/templates @@ -208,6 +208,10 @@ envrc-file-mode (python "CC=\"$(nix build nixpkgs#stdenv.cc.cc.lib --print-out-paths --no-link)\"" n "ZLIB=\"$(nix build nixpkgs#zlib --print-out-paths --no-link)\"" n "export LD_LIBRARY_PATH=\"$CC/lib\":\"$ZLIB/lib\"" n + "VENV_DIR=.venv/" n + "if [ ! -f $VENV_DIR/bin/python3 ]; then" n + > "nix run nixpkgs#python3 -- -m venv $VENV_DIR" n + "fi" n "source .venv/bin/activate") ;; Local Variables: