Speed up nix shell
This commit is contained in:
parent
bcc2f202c2
commit
aacbb35a8d
|
@ -15,9 +15,7 @@ pkgs.mkShell {
|
|||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib/"
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip list --outdated | grep -iE "^(pip|wheel)" > /dev/null && python -m pip install --upgrade pip wheel
|
||||
[ -f poetry.lock ] && python -m pip install -U poetry && python -m poetry install
|
||||
[ -d .venv ] || python -m venv .venv
|
||||
[ -d .venv ] && source .venv/bin/activate
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue