587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
35 lines
829 B
Nix
35 lines
829 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nexttrace";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nxtrace";
|
|
repo = "NTrace-core";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-15ONnY0ST3e9FPyNkyUfQLgKUXjrMX2+4Op4WDumyyk=";
|
|
};
|
|
vendorHash = "sha256-dlubG+2UvlZI0r9CU2ljCbLs1+t+xgwP2yrbiAt8MgQ=";
|
|
|
|
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";
|
|
};
|
|
}
|
|
|