Commit 1cc9c542 authored by Niklas Korz's avatar Niklas Korz
Browse files

matomo: add updateScript

parent 252c0538
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  makeWrapper,
  php,
  nixosTests,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -90,6 +91,12 @@ stdenv.mkDerivation (finalAttrs: {
  '';

  passthru = {
    updateScript = nix-update-script {
      extraArgs = [
        "--url"
        "https://github.com/matomo-org/matomo"
      ];
    };
    tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
      inherit (nixosTests) matomo;
    };
@@ -100,6 +107,7 @@ stdenv.mkDerivation (finalAttrs: {
    mainProgram = "matomo-console";
    license = licenses.gpl3Plus;
    homepage = "https://matomo.org/";
    changelog = "https://github.com/matomo-org/matomo/releases/tag/${finalAttrs.version}";
    platforms = platforms.all;
    maintainers =
      with maintainers;