mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
29 lines
779 B
Nix
29 lines
779 B
Nix
{ buildGoPackage, lib, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "openldap_exporter";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomcz";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+lrLA9CbGNzvvbwn79ili/kFRCr6vMKDtkvyfnL9n9k=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X github.com/tomcz/openldap_exporter.tag=v${version}"
|
|
"-X github.com/tomcz/openldap_exporter.commit=unknown"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|