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