From 93731bf2c8c37a990c46597160a73172650321b0 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 28 Aug 2023 20:12:20 +0200 Subject: [PATCH] Readd poetry2nix I have less problems with it than without. --- .envrc | 5 ++- dev.sh | 11 +++--- flake.lock | 79 ++++++++++++++++++++++++++++++++++++++++++- flake.nix | 99 +++++++++++++++++++++++++++++++++++++++--------------- 4 files changed, 157 insertions(+), 37 deletions(-) diff --git a/.envrc b/.envrc index 2066d11..826e7ca 100644 --- a/.envrc +++ b/.envrc @@ -38,7 +38,10 @@ layout_poetry() { export VIRTUAL_ENV } -layout poetry +if ! has nix; then + layout poetry +fi + export PROJECT_DIR=$(pwd) export WEBPORT=$(($RANDOM + 1100)) export PGPORT=$(($WEBPORT + 100)) diff --git a/dev.sh b/dev.sh index bfd078d..07fa3cc 100755 --- a/dev.sh +++ b/dev.sh @@ -89,7 +89,7 @@ descriptions["venv"]="Build a pseudo venv that editors like VS Code can use." tasks["venv"]=venv build-container() { - nix build && docker load