nixpkgs/pkgs/tools/networking/nexttrace/default.nix
2024-03-25 07:36:34 +00:00

36 lines
829 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nexttrace";
version = "1.2.9";
src = fetchFromGitHub {
owner = "nxtrace";
repo = "NTrace-core";
rev = "v${version}";
sha256 = "sha256-cnFFlEgq3zYIvVAe7ocw4oiqZQHINvrquBfylm2+dCw=";
};
vendorHash = "sha256-eNRJxz/rbqf1mVRvE83JXUR3/F7XmBhfsOvxaSgDRjc=";
doCheck = false; # Tests require a network connection.
ldflags = [
"-s"
"-w"
"-X github.com/nxtrace/NTrace-core/config.Version=v${version}"
];
postInstall = ''
mv $out/bin/NTrace-core $out/bin/nexttrace
'';
meta = with lib; {
description = "An open source visual route tracking CLI tool";
homepage = "https://mtr.moe";
license = licenses.gpl3Only;
maintainers = with maintainers; [ sharzy ];
mainProgram = "nexttrace";
};
}