mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +00:00
e23bacc844
use go 1.22 to build nexttrace This project is meant to be build on Go 1.22 instead of any later versions References: - https://github.com/nxtrace/NTrace-core/issues/270 - https://github.com/nxtrace/NTrace-core/issues/257
36 lines
832 B
Nix
36 lines
832 B
Nix
{ lib, buildGo122Module, fetchFromGitHub }:
|
|
|
|
buildGo122Module rec {
|
|
pname = "nexttrace";
|
|
version = "1.3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nxtrace";
|
|
repo = "NTrace-core";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-32QFgmvXQ+8ix1N9I6pJaIJGWOT67/FG0VVEhftwQQw=";
|
|
};
|
|
vendorHash = "sha256-WRH9doQavcdH1sd2fS8QoFSmlirBMZgSzB/sj1q6cUQ=";
|
|
|
|
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";
|
|
};
|
|
}
|
|
|