2020-03-27 08:33:21 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-11-07 04:04:21 +01:00
|
|
|
|
2019-04-22 06:00:00 +02:00
|
|
|
buildGoModule rec {
|
2019-03-13 23:49:53 +01:00
|
|
|
pname = "pgmetrics";
|
2020-11-11 21:26:07 +01:00
|
|
|
version = "1.10.2";
|
2018-11-07 04:04:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rapidloop";
|
2019-04-22 06:00:00 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-11 21:26:07 +01:00
|
|
|
sha256 = "0mhdw985gs9gh44iz78a588nnnapirpnd7s0zh35jyripx8pgw47";
|
2018-11-07 04:04:21 +01:00
|
|
|
};
|
|
|
|
|
2020-05-01 03:59:00 +02:00
|
|
|
vendorSha256 = "16x33fmh4q993rw0jr65337yimska4fwgyyw3kmq84q0x28a3zg5";
|
2020-03-14 12:48:34 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-14 12:48:34 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2018-11-07 04:04:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-14 12:48:34 +01:00
|
|
|
homepage = "https://pgmetrics.io/";
|
2018-11-07 04:04:21 +01:00
|
|
|
description = "Collect and display information and stats from a running PostgreSQL server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|