diff --git a/templates b/templates index e38fe34..38021a7 100644 --- a/templates +++ b/templates @@ -207,10 +207,11 @@ 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 + "PYTHON=\"$(nix build " (p "nixpkgs#python3Full") " --print-out-paths --no-link)/bin/python3\"" n + "VENV_DIR=" (p ".venv") n "export LD_LIBRARY_PATH=\"$CC/lib\":\"$ZLIB/lib\"" n - "VENV_DIR=.venv/" n "if [ ! -f $VENV_DIR/bin/python3 ]; then" n - > "python3 -m venv $VENV_DIR" n + > "$PYTHON -m venv $VENV_DIR" n "fi" n "source $VENV_DIR/bin/activate")