2021-01-17 00:15:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "VictoriaMetrics";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.54.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-nZSNn1vLk3y6s4ie1AkSkGmKUiIrcBr3yKW5uAEtRt0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
vendorSha256 = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) victoriametrics; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://victoriametrics.com/";
|
|
|
|
description = "fast, cost-effective and scalable time series database, long-term remote storage for Prometheus";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.yorickvp ];
|
|
|
|
};
|
|
|
|
}
|