1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/nosql/victoriametrics/default.nix

25 lines
706 B
Nix
Raw Normal View History

2020-04-12 10:20:00 +01:00
{ lib, buildGoPackage, fetchFromGitHub }:
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-07-07 23:46:33 +01:00
version = "1.37.4";
2020-01-19 17:55:36 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2020-07-07 23:46:33 +01:00
sha256 = "02jr0qz130jz7ncfch1jry0prd00669j53mlmpb6ky0xiz5y2zq1";
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}" ];
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 ];
};
}