diff options
author | Jonas Heinrich | 2024-06-18 14:31:19 +0200 |
---|---|---|
committer | GitHub | 2024-06-18 14:31:19 +0200 |
commit | 7c6f84533a58614f95e5afd7e37ec44890130de7 (patch) | |
tree | fbdf5464e6dade3f7abc2c4cd0a79fca715fd6a1 | |
parent | 05634cf84b0a0f9e4bc5c6791148dc0ba97a5806 (diff) | |
parent | 455da513714535289c148fdaf48ce58e34a58921 (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.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 = '' |