depot/third_party/nixpkgs/pkgs/tools/networking/nexttrace/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

34 lines
800 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nexttrace";
version = "1.2.2.2";
src = fetchFromGitHub {
owner = "nxtrace";
repo = "NTrace-core";
rev = "v${version}";
sha256 = "sha256-a9l6nsrbgwmk6cq/rPBwPwZ8yhH35VxKmn9x5PgcqGI=";
};
vendorHash = "sha256-YAmGvmHkR1G2MLlDja5aPJqX2F3etogebasqD72YJ3M=";
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 ];
};
}