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";