diff options
author | Jonas Heinrich | 2024-06-17 20:48:21 +0200 |
---|---|---|
committer | github-actions[bot] | 2024-06-18 11:33:37 +0000 |
commit | 455da513714535289c148fdaf48ce58e34a58921 (patch) | |
tree | 044b504629171684017f6ac1af12b355088ba176 | |
parent | 03938a7a09ba31f39eae5384dc14617950d4b2c8 (diff) |
nixos/invoiceplane: Ensure patching index.php
(cherry picked from commit 2a8ccf614465bbf78f399e33f8efa86c250b5aed)
-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 4d0e25958e35..3ed21e074cfe 100644 --- a/nixos/modules/services/web-apps/invoiceplane.nix +++ b/nixos/modules/services/web-apps/invoiceplane.nix @@ -49,10 +49,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 = '' |