summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2024-08-22 16:23:21 +0100
committerGitHub <noreply@github.com>2024-08-22 16:23:21 +0100
commit555328b9e47cea760fdadbd1ac01fba54f1184a7 (patch)
tree5a90b72f389296f6c3f3f9665c8850a085748fbf
parentMerge pull request #336543 from NixOS/backport-335114-to-release-24.05 (diff)
parentmealie: fix relative path in code handling backup (diff)
downloadnixpkgs-555328b9e47cea760fdadbd1ac01fba54f1184a7.tar.gz
Merge pull request #336529 from litchipi/backport-335881-to-release-24.05
mealie: fix relative path in code handling backup
-rw-r--r--pkgs/by-name/me/mealie/package.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/by-name/me/mealie/package.nix b/pkgs/by-name/me/mealie/package.nix
index 0bd096f7977c..9d5fc6123893 100644
--- a/pkgs/by-name/me/mealie/package.nix
+++ b/pkgs/by-name/me/mealie/package.nix
@@ -113,6 +113,15 @@ in pythonpkgs.buildPythonPackage rec {
postPatch = ''
substituteInPlace mealie/__init__.py \
--replace-fail '__version__ = ' '__version__ = "v${version}" #'
+
+ substituteInPlace mealie/services/backups_v2/alchemy_exporter.py \
+ --replace-fail 'PROJECT_DIR = ' "PROJECT_DIR = Path('$out') #"
+
+ substituteInPlace mealie/db/init_db.py \
+ --replace-fail 'PROJECT_DIR = ' "PROJECT_DIR = Path('$out') #"
+
+ substituteInPlace mealie/services/backups_v2/alchemy_exporter.py \
+ --replace-fail '"script_location", path.join(PROJECT_DIR, "alembic")' '"script_location", "${src}/alembic"'
'';
postInstall = let