12 src = fetchFromGitHub {
15 rev = "refs/tags/v${version}";
16 hash = "sha256-LmWfs3aL+1lsX4ix2FjDP5g+A0wgcfziXdw5SaKlAdk=";
19 vendorHash = "sha256-frPAhiexFSt+KobMbf32h8xv7HMcPl5koEgSs8Nz3cs=";
24 "-X main.version=${version}"
27 # The test failed due to a geoip request in the sandbox. Remove it to avoid network requirement
29 rm ./pkg/monitor/myip_test.go
33 version = testers.testVersion {
34 package = nezha-agent;
35 command = "${nezha-agent}/bin/agent -v";
40 description = "Agent of Nezha Monitoring";
41 homepage = "https://github.com/nezhahq/agent";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ moraxyc ];