2023-03-08 16:32:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nexttrace";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.7-1";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sjlleo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-ZMbX37gi9aGamDtoTdfUMiCPieP4DhjBSE5CIJLK6Z0=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-u5EIzYWr81tmMmImoRH0wT7aD3/0tx+W3CXeymWVACM=";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
doCheck = false; # Tests require a network connection.
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-07-15 17:15:38 +00:00
|
|
|
"-X github.com/xgadget-lab/nexttrace/config.Version=v${version}"
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An open source visual route tracking CLI tool";
|
|
|
|
homepage = "https://mtr.moe";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ sharzy ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|