linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / pgmetrics / default.nix
blob54e7093747bf54fd96fb38895e864566e2bf4b14
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "pgmetrics";
5   version = "1.10.5";
7   src = fetchFromGitHub {
8     owner  = "rapidloop";
9     repo   = pname;
10     rev    = "v${version}";
11     sha256 = "sha256-rqaK94Rw0K1+r7+7jHI2bzBupCGTkokeC4heJ3Yu6pQ=";
12   };
14   vendorSha256 = "sha256-5f2hkOgAE4TrHNz7xx1RU9fozxjFZAl4HilhAqsbo5s=";
16   doCheck = false;
18   buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
20   meta = with lib; {
21     homepage = "https://pgmetrics.io/";
22     description = "Collect and display information and stats from a running PostgreSQL server";
23     license = licenses.asl20;
24     maintainers = [ maintainers.marsam ];
25   };