mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
42 lines
912 B
Nix
42 lines
912 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
libpcap,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "nexttrace";
|
|
version = "1.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nxtrace";
|
|
repo = "NTrace-core";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-yjG/nXnZs5ks80Q5Qq9TsN57nuSrPvp/jlYV3FXJqMk=";
|
|
};
|
|
vendorHash = "sha256-u5UTl3zNlnv0qk/Z60h1csp44ypn1V6i/aAThtTn3eg=";
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
doCheck = false; # Tests require a network connection.
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/nxtrace/NTrace-core/config.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/NTrace-core $out/bin/nexttrace
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open source visual route tracking CLI tool";
|
|
homepage = "https://www.nxtrace.org/";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ sharzy ];
|
|
mainProgram = "nexttrace";
|
|
};
|
|
})
|