nixpkgs/pkgs/tools/misc/pgmetrics/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
691 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2018-11-07 03:04:21 +00:00
2019-04-22 04:00:00 +00:00
buildGoModule rec {
2019-03-13 22:49:53 +00:00
pname = "pgmetrics";
version = "1.16.0";
2018-11-07 03:04:21 +00:00
src = fetchFromGitHub {
owner = "rapidloop";
repo = pname;
rev = "v${version}";
sha256 = "sha256-8pF3E0Zh/SsH6+5iXt1KFwud2ijoisYfcu+QHRM9x9s=";
2018-11-07 03:04:21 +00:00
};
2023-08-13 21:35:18 +00:00
vendorHash = "sha256-KIMnvGMIipuIFPTSeERtCfvlPuvHvEHdjBJ1TbT2d1s=";
2020-03-14 11:48:34 +00:00
doCheck = false;
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2018-11-07 03:04:21 +00:00
meta = with lib; {
2020-03-14 11:48:34 +00:00
homepage = "https://pgmetrics.io/";
2018-11-07 03:04:21 +00:00
description = "Collect and display information and stats from a running PostgreSQL server";
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
2023-11-27 01:17:53 +00:00
mainProgram = "pgmetrics";
2018-11-07 03:04:21 +00:00
};
}