patch the models code for real
This commit is contained in:
parent
cd38e40596
commit
4da648a399
1 changed files with 2 additions and 4 deletions
|
@ -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";
|
||||||
|
|
Reference in a new issue