1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 10:36:36 +03:00

invoiceplane: 1.5.11 -> 1.6-beta-1

This commit is contained in:
Jonas Heinrich 2022-10-02 14:46:51 +02:00
parent faacb60b6e
commit a6e8bd09f3
3 changed files with 7 additions and 38 deletions

View file

@ -36,10 +36,10 @@ let
version = src.version;
src = pkgs.invoiceplane;
patchPhase = ''
postPhase = ''
# Patch index.php file to load additional config file
substituteInPlace index.php \
--replace "require('vendor/autoload.php');" "require('vendor/autoload.php'); \$dotenv = new \Dotenv\Dotenv(__DIR__, 'extraConfig.php'); \$dotenv->load();";
--replace "require('vendor/autoload.php');" "require('vendor/autoload.php'); \$dotenv = Dotenv\Dotenv::createImmutable(__DIR__, 'extraConfig.php'); \$dotenv->load();";
'';
installPhase = ''