Update python envrc template
Completely removes the need to call a shell.nix in .envrc now (I think)
This commit is contained in:
parent
49be9727a8
commit
18479f82fb
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue