2022-05-03 03:05:38 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-04-02 12:24:20 +02:00
|
|
|
|
2022-05-03 03:05:38 +02:00
|
|
|
buildGoModule rec {
|
2021-04-02 12:24:20 +02:00
|
|
|
pname = "openldap_exporter";
|
2022-08-14 19:00:06 +02:00
|
|
|
version = "2.2.2";
|
2021-04-02 12:24:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomcz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-14 19:00:06 +02:00
|
|
|
sha256 = "sha256-1u+89odwV/lz34wtrK91lET2bOqkH6kRA7JCjzsmiEg=";
|
2021-04-02 12:24:20 +02:00
|
|
|
};
|
|
|
|
|
2023-09-21 19:11:11 +02:00
|
|
|
vendorHash = null;
|
2022-05-03 03:05:38 +02:00
|
|
|
|
2021-08-26 05:31:57 +02:00
|
|
|
ldflags = [
|
2022-05-03 03:05:38 +02:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-08-26 05:31:57 +02:00
|
|
|
"-X github.com/tomcz/openldap_exporter.tag=v${version}"
|
|
|
|
"-X github.com/tomcz/openldap_exporter.commit=unknown"
|
|
|
|
];
|
2021-04-02 12:24:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tomcz/openldap_exporter";
|
2022-05-03 03:05:38 +02:00
|
|
|
description = "Simple service that scrapes metrics from OpenLDAP and exports them via HTTP for Prometheus consumption";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "openldap_exporter";
|
2021-04-02 12:24:20 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|