nixpkgs/pkgs/servers/nosql/victoriametrics/default.nix

27 lines
763 B
Nix
Raw Normal View History

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