mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 05:43:17 +00:00
27 lines
683 B
Nix
27 lines
683 B
Nix
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "postgres_exporter";
|
|
version = "0.8.0";
|
|
|
|
goPackagePath = "github.com/wrouesnel/postgres_exporter";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wrouesnel";
|
|
repo = "postgres_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "0mid2kvskab3a32jscygg5jh0741nr7dvxzj4v029yiiqcx55nrc";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "A Prometheus exporter for PostgreSQL";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fpletz globin willibutz ];
|
|
};
|
|
}
|