Matomo: Difference between revisions

From NixOS Wiki
imported>Mic92
No edit summary
imported>Nix
m add Software/Applications subcategory
Line 19: Line 19:
};
};
</syntaxHighlight>
</syntaxHighlight>
[[Category:Applications]]

Revision as of 06:08, 20 September 2021

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