5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
27 lines
780 B
Nix
27 lines
780 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
buildGoModule rec {
|
|
pname = "vmagent";
|
|
version = "1.101.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "VictoriaMetrics";
|
|
repo = "VictoriaMetrics";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Jjz/CbVCvc9NFbvzYTFthG8cov4pYpc6y1A1Kmd3Mjg=";
|
|
};
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [ "app/vmagent" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent";
|
|
description = "VictoriaMetrics metrics scraper";
|
|
mainProgram = "vmagent";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ nullx76 leona ];
|
|
};
|
|
}
|