Speed up nix shell

This commit is contained in:
Evie Litherland-Smith 2023-04-20 16:01:26 +01:00
parent bcc2f202c2
commit aacbb35a8d

View file

@ -15,9 +15,7 @@ pkgs.mkShell {
shellHook = '' shellHook = ''
export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib/" export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib/"
python -m venv .venv [ -d .venv ] || python -m venv .venv
source .venv/bin/activate [ -d .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
''; '';
} }