This commit is contained in:
2024-05-10 19:57:29 +02:00
parent df0a64f7c9
commit 3841cda1cd
5 changed files with 14 additions and 5 deletions

9
.envrc
View File

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