3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/nosql/victoriametrics/default.nix

27 lines
763 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2020-01-19 17:55:36 +00:00
buildGoModule rec {
2020-01-19 17:55:36 +00:00
pname = "VictoriaMetrics";
2021-03-10 07:33:13 +00:00
version = "1.54.1";
2020-01-19 17:55:36 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2021-03-10 07:33:13 +00:00
sha256 = "sha256-nZSNn1vLk3y6s4ie1AkSkGmKUiIrcBr3yKW5uAEtRt0=";
2020-01-19 17:55:36 +00:00
};
vendorSha256 = null;
2020-04-12 10:20:00 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];
2020-07-08 10:20:00 +01:00
2020-10-01 10:57:23 +01:00
passthru.tests = { inherit (nixosTests) victoriametrics; };
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 ];
};
}