patch the models code for real

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-02 20:19:39 +01:00
parent cd38e40596
commit 4da648a399
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -57,9 +57,6 @@ in
pname = "moa"; pname = "moa";
version = source.date; version = source.date;
inherit src; inherit src;
patchPhase = ''
substituteInPlace moa/models.py --replace "engine, reflect=True" "autoload_with=engine"
'';
buildPhase = '' buildPhase = ''
echo "#!/bin/sh" > start.sh echo "#!/bin/sh" > start.sh
echo "cd $out" >> start.sh echo "cd $out" >> start.sh
@ -73,8 +70,9 @@ in
installPhase = '' installPhase = ''
cp -rv $src $out cp -rv $src $out
chmod +w $out chmod -R +w $out
cp start-*.sh $out cp start-*.sh $out
sed -i 's/engine, reflect=True/autoload_with=engine/' $out/moa/models.py
''; '';
meta = { meta = {
description = "Mastodon-Twitter crossposter"; description = "Mastodon-Twitter crossposter";