Update python envrc template

Completely removes the need to call a shell.nix in .envrc now (I
think)
This commit is contained in:
Evie Litherland-Smith 2024-07-23 09:49:47 +01:00
parent 49be9727a8
commit 18479f82fb

View file

@ -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: