Skip to content

Commit

Permalink
mealie: fix relative path in code handling backup
Browse files Browse the repository at this point in the history
Signed-off-by: Litchi Pi <[email protected]>
(cherry picked from commit 36a456f)
  • Loading branch information
litchipi committed Aug 22, 2024
1 parent e088f57 commit 930a46f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/by-name/me/mealie/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 930a46f

Please sign in to comment.