2021-01-25 09:26:54 +01:00
|
|
|
{ lib, 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";
|
2021-10-23 01:55:45 +02:00
|
|
|
version = "1.12.0";
|
2018-11-07 04:04:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-10-23 01:55:45 +02:00
|
|
|
owner = "rapidloop";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fwc4qc17fqmzx08kiyfx5iwgzr14dxk9i8zjd9bq5gk281v0ybd";
|
2018-11-07 04:04:21 +01:00
|
|
|
};
|
|
|
|
|
2021-10-23 01:55:45 +02:00
|
|
|
vendorSha256 = "18da45axjl8l3qb6f3w5v2c7clz4bjhdz2bck20j729k7693hpsl";
|
2020-03-14 12:48:34 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2018-11-07 04:04:21 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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
|
|
|
}
|