nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.2 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7let 8 version = "0.0.12"; 9in 10buildGoModule { 11 pname = "stunner"; 12 inherit version; 13 14 src = fetchFromGitHub { 15 owner = "jaxxstorm"; 16 repo = "stunner"; 17 tag = "v${version}"; 18 hash = "sha256-f45MliWauAkUkffcoexRz+ZjWUYmhZ6yVKqqdC56V04="; 19 }; 20 21 vendorHash = "sha256-tO61UBZxPBg6oFKOuMjPSb4EHZ9wPAyBsdQZb7DLdw0="; 22 23 ldflags = [ 24 "-X=main.Version=${version}" 25 ]; 26 27 meta = { 28 description = "Detect your NAT quickly and easily, and that's the bottom line"; 29 longDescription = '' 30 Stunner is a small Go CLI tool that sends STUN Binding Requests to 31 multiple Tailscale DERP servers (or any STUN servers you specify) and 32 reports the resulting NAT classification. This helps you determine 33 whether you're behind a Full Cone, Symmetric NAT, Restricted, or 34 otherwise, by analyzing how multiple STUN servers perceive your external 35 IP/port mapping. 36 ''; 37 homepage = "https://github.com/jaxxstorm/stunner"; 38 changelog = "https://github.com/jaxxstorm/stunner/releases/tag/v${version}"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ jk ]; 41 mainProgram = "stunner"; 42 }; 43}