2021-04-02 11:24:20 +01:00
|
|
|
{ buildGoPackage, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "openldap_exporter";
|
2021-07-23 07:34:35 +01:00
|
|
|
version = "2.1.4";
|
2021-04-02 11:24:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomcz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-23 07:34:35 +01:00
|
|
|
sha256 = "sha256-G4bTYFm1Zh+7gfSIZnfrPyQ15967ebEzl33pgZu23D4=";
|
2021-04-02 11:24:20 +01:00
|
|
|
};
|
|
|
|
|
2021-08-26 04:31:57 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/tomcz/openldap_exporter.tag=v${version}"
|
|
|
|
"-X github.com/tomcz/openldap_exporter.commit=unknown"
|
|
|
|
];
|
2021-04-02 11:24:20 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/tomcz/openldap_exporter";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tomcz/openldap_exporter";
|
|
|
|
description = " Simple service that scrapes metrics from OpenLDAP and exports them via HTTP for Prometheus consumption";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|