From eabcc3a8bfec02a7b2c245f2d4cf887774a9072e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 2 Nov 2022 20:41:05 +0100 Subject: [PATCH] pls work --- moa/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moa/default.nix b/moa/default.nix index 4a5eed3..fac5775 100644 --- a/moa/default.nix +++ b/moa/default.nix @@ -73,6 +73,9 @@ in chmod -R +w $out cp start-*.sh $out sed -i 's/, reflect=True//' $out/moa/models.py + substituteInPlace $out/app.py --replace "from authlib.integrations._client import MissingRequestTokenError" "class MissingRequestTokenError(Exception): pass" + substituteInPlace $out/moa/worker.py --replace "Path(f'" "Path(f'/run/moa_" + substituteInPlace $out/app.py --replace "logHandler = logging.FileHandler('logs/app.log')" "import sys; logHandler = logging.StreamHandler(sys.stderr)" ''; meta = { description = "Mastodon-Twitter crossposter";