2023-03-08 16:32:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nexttrace";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.2.3.1";
|
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}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-uY3Cjemv+iFOrWm7lXzRprIljqHCLWOF6DyDURrH39g=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-sugEN7sKBwEKsfX1MBwOiyH1aq1995HL+Yv7Q8XaPAo=";
|
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; {
|
|
|
|
description = "An open source visual route tracking CLI tool";
|
|
|
|
homepage = "https://mtr.moe";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ sharzy ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|