vmagent: build from victoriametrics package

This commit is contained in:
Shawn8901 2024-05-01 14:56:30 +02:00
parent d68244cf1f
commit 728715dbc1
4 changed files with 13 additions and 30 deletions

View File

@ -86,7 +86,7 @@ buildGoModule rec {
homepage = "https://victoriametrics.com/";
description = "fast, cost-effective and scalable time series database, long-term remote storage for Prometheus";
license = licenses.asl20;
maintainers = with maintainers; [ yorickvp ivan ];
maintainers = with maintainers; [ yorickvp ivan nullx76 leona ];
changelog = "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v${version}";
mainProgram = "victoria-metrics";
};

View File

@ -0,0 +1,12 @@
{ lib, victoriametrics }:
lib.addMetaAttrs { mainProgram = "vmagent"; } (
victoriametrics.override {
withServer = false;
withVictoriaLogs = false;
withVmAlert = false;
withVmAuth = false;
withBackupTools = false;
withVmctl = false;
withVmAgent = true;
}
)

View File

@ -1,27 +0,0 @@
{ 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 ];
};
}

View File

@ -26531,8 +26531,6 @@ with pkgs;
virtualenv-clone = with python3Packages; toPythonApplication virtualenv-clone;
vmagent = callPackage ../servers/monitoring/vmagent { };
vsftpd = callPackage ../servers/ftp/vsftpd { };
wallabag = callPackage ../servers/web-apps/wallabag { };