go-away: add meta.mainProgram, passthru.updateScript (#459235)

This commit is contained in:
isabel
2025-11-07 11:49:57 +00:00
committed by GitHub
+8
View File
@@ -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";
@@ -72,5 +79,6 @@ buildGoModule (finalAttrs: {
homepage = "https://git.gammaspectra.live/git/go-away";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
mainProgram = "go-away";
};
})