diff options
| author | Bruno BELANYI <bruno@belanyi.fr> | 2024-08-22 16:23:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 16:23:21 +0100 |
| commit | 555328b9e47cea760fdadbd1ac01fba54f1184a7 (patch) | |
| tree | 5a90b72f389296f6c3f3f9665c8850a085748fbf | |
| parent | Merge pull request #336543 from NixOS/backport-335114-to-release-24.05 (diff) | |
| parent | mealie: fix relative path in code handling backup (diff) | |
| download | nixpkgs-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.nix | 9 |
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 |
