2023-03-08 16:32:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nexttrace";
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "1.3.5";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-19 13:55:26 +00:00
|
|
|
owner = "nxtrace";
|
|
|
|
repo = "NTrace-core";
|
2023-03-08 16:32:21 +00:00
|
|
|
rev = "v${version}";
|
2024-10-23 06:41:50 +00:00
|
|
|
sha256 = "sha256-32QFgmvXQ+8ix1N9I6pJaIJGWOT67/FG0VVEhftwQQw=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
2024-10-23 06:41:50 +00:00
|
|
|
vendorHash = "sha256-WRH9doQavcdH1sd2fS8QoFSmlirBMZgSzB/sj1q6cUQ=";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
doCheck = false; # Tests require a network connection.
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-10-19 13:55:26 +00:00
|
|
|
"-X github.com/nxtrace/NTrace-core/config.Version=v${version}"
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/NTrace-core $out/bin/nexttrace
|
|
|
|
'';
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open source visual route tracking CLI tool";
|
2023-03-08 16:32:21 +00:00
|
|
|
homepage = "https://mtr.moe";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ sharzy ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "nexttrace";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|