Unverified Commit e9c3642c authored by Christoph Heiss's avatar Christoph Heiss
Browse files

go-away: add passthru.updateScript

parent 834bfc40
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildGoModule,
  fetchFromGitea,
  nix-update-script,

  # asset compression
  brotli,
@@ -57,6 +58,12 @@ buildGoModule (finalAttrs: {
    cp -rv examples/snippets $out/lib/go-away/
  '';

  passthru.updateScript = nix-update-script {
    # the main repository does not have the releases feed enabled, so use the
    # codeberg mirror
    url = "https://codeberg.org/gone/go-away";
  };

  meta = {
    changelog = "https://git.gammaspectra.live/git/go-away/releases/tag/${finalAttrs.src.tag}";
    description = "Self-hosted abuse detection and rule enforcement against low-effort mass AI scraping and bots";