nixpkgs/pkgs/tools/networking/nexttrace/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
798 B
Nix
Raw Normal View History

2023-03-08 03:20:55 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nexttrace";
2023-11-26 03:50:27 +00:00
version = "1.2.6";
2023-03-08 03:20:55 +00:00
src = fetchFromGitHub {
2023-10-12 13:20:42 +00:00
owner = "nxtrace";
repo = "NTrace-core";
2023-03-08 03:20:55 +00:00
rev = "v${version}";
2023-11-26 03:50:27 +00:00
sha256 = "sha256-UD6+oFXYk5VWD9MZdE3ECnyYJSe7v88D9gkIAj+e7Bw=";
2023-03-08 03:20:55 +00:00
};
2023-11-26 03:50:27 +00:00
vendorHash = "sha256-2lDkNbsAgEMSKK7ODpjJEL0ZM4N1khzGuio1645Xxqo=";
2023-03-08 03:20:55 +00:00
doCheck = false; # Tests require a network connection.
ldflags = [
"-s"
"-w"
2023-10-12 13:20:42 +00:00
"-X github.com/nxtrace/NTrace-core/config.Version=v${version}"
2023-03-08 03:20:55 +00:00
];
2023-10-12 13:20:42 +00:00
postInstall = ''
mv $out/bin/NTrace-core $out/bin/nexttrace
'';
2023-03-08 03:20:55 +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 ];
};
}