about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Heinrich2024-06-18 14:31:19 +0200
committerGitHub2024-06-18 14:31:19 +0200
commit7c6f84533a58614f95e5afd7e37ec44890130de7 (patch)
treefbdf5464e6dade3f7abc2c4cd0a79fca715fd6a1
parent05634cf84b0a0f9e4bc5c6791148dc0ba97a5806 (diff)
parent455da513714535289c148fdaf48ce58e34a58921 (diff)
Merge pull request #320757 from NixOS/backport-320593-to-release-24.05
[Backport release-24.05] nixos/invoiceplane: Ensure patching index.php
-rw-r--r--nixos/modules/services/web-apps/invoiceplane.nix4
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 = ''