761552c4c3
ChangeLog: https://github.com/prometheus-community/postgres_exporter/releases/tag/v0.12.0
26 lines
709 B
Nix
26 lines
709 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "postgres_exporter";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus-community";
|
|
repo = "postgres_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-eY9/a+uFJJ8lT+0ZGa+ExjKf0V6JOqI3l1sZbfQEXOc=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-sMWprCRUvF6voLM3GjTq9tId1GoCPac/RE6hXL+LBEE=";
|
|
|
|
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 ma27 ];
|
|
};
|
|
}
|