Files
nixpkgs/pkgs/by-name/st/stunner/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
let
version = "0.0.12";
in
buildGoModule {
pname = "stunner";
inherit version;
src = fetchFromGitHub {
owner = "jaxxstorm";
repo = "stunner";
tag = "v${version}";
hash = "sha256-f45MliWauAkUkffcoexRz+ZjWUYmhZ6yVKqqdC56V04=";
};
vendorHash = "sha256-tO61UBZxPBg6oFKOuMjPSb4EHZ9wPAyBsdQZb7DLdw0=";
ldflags = [
"-X=main.Version=${version}"
];
meta = {
description = "Detect your NAT quickly and easily, and that's the bottom line";
longDescription = ''
Stunner is a small Go CLI tool that sends STUN Binding Requests to
multiple Tailscale DERP servers (or any STUN servers you specify) and
reports the resulting NAT classification. This helps you determine
whether you're behind a Full Cone, Symmetric NAT, Restricted, or
otherwise, by analyzing how multiple STUN servers perceive your external
IP/port mapping.
'';
homepage = "https://github.com/jaxxstorm/stunner";
changelog = "https://github.com/jaxxstorm/stunner/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jk ];
mainProgram = "stunner";
};
}