{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "nexttrace"; version = "1.4.0"; src = fetchFromGitHub { owner = "nxtrace"; repo = "NTrace-core"; rev = "v${version}"; sha256 = "sha256-S3rxA5V3x4xdfUiq+XnP2ObE2gQ/3IcooIx6ShNkLrc="; }; vendorHash = "sha256-9CNreBLmx1t95M8BijfytDxDrr/GL1GPI/ed9SdYae4="; doCheck = false; # Tests require a network connection. ldflags = [ "-s" "-w" "-X github.com/nxtrace/NTrace-core/config.Version=v${version}" "-checklinkname=0" # refers to https://github.com/nxtrace/NTrace-core/issues/247 ]; postInstall = '' mv $out/bin/NTrace-core $out/bin/nexttrace ''; meta = with lib; { description = "Open source visual route tracking CLI tool"; homepage = "https://mtr.moe"; license = licenses.gpl3Only; maintainers = with maintainers; [ sharzy ]; mainProgram = "nexttrace"; }; }