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

25 lines
706 B
Nix
Raw Normal View History

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