2020-04-12 10:20:00 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-01-19 17:55:36 +00:00
|
|
|
|
2020-04-12 10:20:00 +01:00
|
|
|
buildGoPackage rec {
|
2020-01-19 17:55:36 +00:00
|
|
|
pname = "VictoriaMetrics";
|
2020-07-07 23:46:33 +01:00
|
|
|
version = "1.37.4";
|
2020-01-19 17:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-07 23:46:33 +01:00
|
|
|
sha256 = "02jr0qz130jz7ncfch1jry0prd00669j53mlmpb6ky0xiz5y2zq1";
|
2020-01-19 17:55:36 +00:00
|
|
|
};
|
|
|
|
|
2020-04-12 10:20:00 +01:00
|
|
|
goPackagePath = "github.com/VictoriaMetrics/VictoriaMetrics";
|
|
|
|
|
2020-07-08 10:20:00 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/lib/buildinfo.Version=${version}" ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|