Matomo: Difference between revisions
imported>Mic92 No edit summary |
imported>Mic92 No edit summary |
||
Line 4: | Line 4: | ||
To use plugins one can use [https://git.helsinki.tools/helsinki-systems/matomo2nix matomo2nix] | To use plugins one can use [https://git.helsinki.tools/helsinki-systems/matomo2nix matomo2nix] | ||
<syntaxHighlight lang=nix> | |||
matomoPackages = (callPackage (builtins.fetchGit { | |||
url = "https://git.helsinki.tools/helsinki-systems/matomo2nix"; | |||
ref = "master"; | |||
}) {}) // { | |||
withPlugins = matomoPkg: pluginPkgs: runCommand "matomo-with-plugins" {} '' | |||
cp -a ${matomoPkg}/. $out | |||
find $out -type d -exec chmod 755 {} + | |||
for i in ${lib.concatStringsSep " " pluginPkgs}; do | |||
cp -a $i/. $out | |||
done | |||
''; | |||
}; | |||
</syntaxHighlight> |
Revision as of 22:29, 8 June 2020
Matomo is a real-time web analytics platform.
Plugins
To use plugins one can use matomo2nix
matomoPackages = (callPackage (builtins.fetchGit {
url = "https://git.helsinki.tools/helsinki-systems/matomo2nix";
ref = "master";
}) {}) // {
withPlugins = matomoPkg: pluginPkgs: runCommand "matomo-with-plugins" {} ''
cp -a ${matomoPkg}/. $out
find $out -type d -exec chmod 755 {} +
for i in ${lib.concatStringsSep " " pluginPkgs}; do
cp -a $i/. $out
done
'';
};