2021-01-16 22:15:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-01-19 17:55:36 +00:00
|
|
|
|
2021-01-16 22:15:57 +00:00
|
|
|
buildGoModule rec {
|
2020-01-19 17:55:36 +00:00
|
|
|
pname = "VictoriaMetrics";
|
2021-05-08 09:58:45 +00:00
|
|
|
version = "1.59.0";
|
2020-01-19 17:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-08 09:58:45 +00:00
|
|
|
sha256 = "sha256-2i9rmk9aAnjTJY+w/NKJOaLX+tpkt3vG07iLCsSGzdU=";
|
2020-01-19 17:55:36 +00:00
|
|
|
};
|
|
|
|
|
2021-01-16 22:15:57 +00:00
|
|
|
vendorSha256 = null;
|
2020-04-12 09:20:00 +00:00
|
|
|
|
2021-01-16 22:15:57 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];
|
2020-07-08 09:20:00 +00:00
|
|
|
|
2020-10-01 09:57:23 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) victoriametrics; };
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2020-01-19 17:55:36 +00:00
|
|
|
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 ];
|
2021-05-08 09:58:45 +00:00
|
|
|
changelog = "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v${version}";
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-01-19 17:55:36 +00:00
|
|
|
};
|
|
|
|
}
|