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

29 lines
881 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-05-08 11:58:45 +02:00
version = "1.59.0";
2020-01-19 18:55:36 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2021-05-08 11:58:45 +02:00
sha256 = "sha256-2i9rmk9aAnjTJY+w/NKJOaLX+tpkt3vG07iLCsSGzdU=";
2020-01-19 18:55:36 +01:00
};
vendorSha256 = null;
2020-04-12 11:20:00 +02:00
2021-08-26 08:45:51 +02:00
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 ];
2021-05-08 11:58:45 +02:00
changelog = "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v${version}";
platforms = [ "x86_64-linux" ];
2020-01-19 18:55:36 +01:00
};
}