7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
35 lines
826 B
Nix
35 lines
826 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nexttrace";
|
|
version = "1.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nxtrace";
|
|
repo = "NTrace-core";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-LUIKVMI8ljPzAmrq3jYQ+ZDCGs2p+7EO8ECp1A1osUk=";
|
|
};
|
|
vendorHash = "sha256-1zjXy6x/IzBY7MrtAtynmoneEpjAnYv/H5IsMZtRQAo=";
|
|
|
|
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 = "Open source visual route tracking CLI tool";
|
|
homepage = "https://mtr.moe";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ sharzy ];
|
|
mainProgram = "nexttrace";
|
|
};
|
|
}
|
|
|