···1314 nativeBuildInputs = [ makeWrapper ];
1516- # regarding the 127.0.0.1 substitute:
17- # This replaces the default value of the database server field.
018 # unix socket authentication only works with localhost,
19 # but password-based SQL authentication works with both.
00000020 postPatch = ''
21- substituteInPlace plugins/Installation/FormDatabaseSetup.php \
22- --replace "=> '127.0.0.1'," "=> 'localhost',"
23 cp ${./bootstrap.php} bootstrap.php
24 '';
25
···1314 nativeBuildInputs = [ makeWrapper ];
1516+ # make-localhost-default-database-server.patch:
17+ # This changes the default value of the database server field
18+ # from 127.0.0.1 to localhost.
19 # unix socket authentication only works with localhost,
20 # but password-based SQL authentication works with both.
21+ # TODO: is upstream interested in this?
22+ patches = [ ./make-localhost-default-database-host.patch ];
23+24+ # this bootstrap.php adds support for getting PIWIK_USER_PATH
25+ # from an environment variable. Point it to a mutable location
26+ # to be able to use matomo read-only from the nix store
27 postPatch = ''
0028 cp ${./bootstrap.php} bootstrap.php
29 '';
30