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

25 lines
706 B
Nix
Raw Normal View History

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