2020-10-01 10:57:23 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
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-10-01 10:49:59 +01:00
|
|
|
version = "1.42.0";
|
2020-01-19 17:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-01 10:49:59 +01:00
|
|
|
sha256 = "10da15i3rn11dxnh82czaa2f9a4c3vf1d8kgfayp0dl7xs1xqhsd";
|
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-10-01 10:57:23 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|