infrastructure/nixos/pkgs/vmagent/default.nix

27 lines
741 B
Nix
Raw Normal View History

2022-07-29 13:02:03 +02:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "vmagent";
2022-10-09 11:58:31 +02:00
version = "1.82.0";
2022-07-29 13:02:03 +02:00
src = fetchFromGitHub {
owner = "VictoriaMetrics";
repo = "VictoriaMetrics";
rev = "v${version}";
2022-10-09 11:58:31 +02:00
sha256 = "JIl2WeveDoAHzqJ2cqMxpWeNf4yQC9fIdfECOJywJ2A=";
2022-07-29 13:02:03 +02:00
};
2022-10-09 11:58:31 +02:00
ldflags = [ "-s" "-w" "-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];
2022-07-29 13:02:03 +02:00
vendorSha256 = null;
subPackages = [ "app/vmagent" ];
2022-09-10 15:10:01 +02:00
2022-07-29 13:02:03 +02:00
meta = with lib; {
homepage = "https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent";
2022-10-09 11:58:31 +02:00
description = "VictoriaMetrics metrics scraper";
2022-07-29 13:02:03 +02:00
license = licenses.asl20;
platforms = platforms.linux;
2022-10-09 11:58:31 +02:00
maintainers = with maintainers; [ nullx76 ];
2022-07-29 13:02:03 +02:00
};
}