diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2024-06-17 20:48:21 +0200 |
---|---|---|
committer | Jonas Heinrich <onny@project-insanity.org> | 2024-06-17 20:48:21 +0200 |
commit | 2a8ccf614465bbf78f399e33f8efa86c250b5aed (patch) | |
tree | 5c06e30c4cad8cf09d17c6b44e3945136cfc90ef | |
parent | 219bc27bcfeaa0c0cc9627a8fe651d33d8da9c9a (diff) |
nixos/invoiceplane: Ensure patching index.php
-rw-r--r-- | nixos/modules/services/web-apps/invoiceplane.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/invoiceplane.nix b/nixos/modules/services/web-apps/invoiceplane.nix index c3dbb88619b3..9a9f180b2102 100644 --- a/nixos/modules/services/web-apps/invoiceplane.nix +++ b/nixos/modules/services/web-apps/invoiceplane.nix @@ -46,10 +46,10 @@ let version = src.version; src = pkgs.invoiceplane; - postPhase = '' + postPatch = '' # Patch index.php file to load additional config file substituteInPlace index.php \ - --replace "require('vendor/autoload.php');" "require('vendor/autoload.php'); \$dotenv = Dotenv\Dotenv::createImmutable(__DIR__, 'extraConfig.php'); \$dotenv->load();"; + --replace-fail "require('vendor/autoload.php');" "require('vendor/autoload.php'); \$dotenv = Dotenv\Dotenv::createImmutable(__DIR__, 'extraConfig.php'); \$dotenv->load();"; ''; installPhase = '' |