Matomo

From NixOS Wiki
Revision as of 22:29, 8 June 2020 by imported>Mic92

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
  '';
};