fix
This commit is contained in:
9
.envrc
9
.envrc
@@ -3,9 +3,11 @@
|
||||
# It enters you into the poetry venv, removing the need for `poetry run`.
|
||||
|
||||
if command -v nix >/dev/null; then
|
||||
use nix -p poetry
|
||||
use flake
|
||||
fi
|
||||
|
||||
export GRZEGORZ_IS_DEBUG=1 # mpv does not start in fullscreen
|
||||
|
||||
# Instead of using the flake, we use poetry to manage a development venv
|
||||
# We only use poetry2nix for deployment
|
||||
|
||||
@@ -18,4 +20,9 @@ PATH_add "$VIRTUAL_ENV/bin"
|
||||
|
||||
if ! command -v sanic >/dev/null; then
|
||||
poetry install
|
||||
# patchelf the venv on nixos
|
||||
if ! test -s /lib64/ld-linux-x86-64.so.2 || { uname -a | grep -qi nixos; }; then
|
||||
#nix run github:GuillaumeDesforges/fix-python -- --venv "$VIRTUAL_ENV" #--libs .nix/libs.nix
|
||||
fix-python --venv "$VIRTUAL_ENV" #--libs .nix/libs.nix
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user