infrastructure/nixos/pkgs/vmagent/default.nix

24 lines
591 B
Nix
Raw Normal View History

2022-07-29 13:02:03 +02:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "vmagent";
2022-09-10 15:10:01 +02:00
version = "1.59.0";
2022-07-29 13:02:03 +02:00
src = fetchFromGitHub {
owner = "VictoriaMetrics";
repo = "VictoriaMetrics";
rev = "v${version}";
2022-09-10 15:10:01 +02:00
sha256 = "1mfdhv20m2xqsg37pdv4vbxdg8iri79grc4g4p9ph0js9yd6nbys";
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; {
description = "VictoriaMetrics metrics scraper";
homepage = "https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent";
license = licenses.asl20;
platforms = platforms.linux;
};
}