0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 22:20:30 +03:00

nezha-agent: 0.20.5 -> 1.9.2

Diff: https://github.com/nezhahq/agent/compare/refs/tags/v0.20.5...v1.9.2

BREAKING CHANGE: Incompatible Configuration Changes
- The upgrade includes significant architectural changes, resulting in a complete incompatibility with previous configurations.
- Users will need to reconfigure their setups as the old configuration is no longer supported.
- Please review the updated documentation for the new configuration format and features.

Docs: https://nezha.wiki
This commit is contained in:
Moraxyc 2024-12-11 15:45:57 +08:00
parent 91ea1cdcd1
commit 6b79819539
No known key found for this signature in database

View file

@ -8,24 +8,27 @@
}:
buildGoModule rec {
pname = "nezha-agent";
version = "0.20.5";
version = "1.9.2";
src = fetchFromGitHub {
owner = "nezhahq";
repo = "agent";
tag = "v${version}";
hash = "sha256-CVE1c0LLheGlH8oMWQWs6fox7mlHc5Y2O9XQ6kqXAwI=";
hash = "sha256-bXzTZ8GCD3gNQsJzvXGlcufKxbX2aTq51toy5P02BxY=";
};
vendorHash = "sha256-ytFsTHl6kVwmqCabaMDxxijszY3jzWWUIZKBCebPMkI=";
vendorHash = "sha256-klwWNTKR7Vdqg3BDDMTyfnVfC+XZ+sFV/17pq7YdJTs=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X github.com/nezhahq/agent/pkg/monitor.Version=${version}"
"-X main.arch=${stdenv.hostPlatform.system}"
];
preBuild = ''
go generate ./...
'';
checkFlags =
let
# Skip tests that require network access