patch the models code

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-02 20:05:42 +01:00
parent f05abf03e3
commit cd38e40596
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -57,6 +57,9 @@ 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