|
|
@ -1,23 +1,25 @@ |
|
|
|
{ buildGoPackage, lib, fetchFromGitHub }: |
|
|
|
{ lib, buildGoModule, fetchFromGitHub }: |
|
|
|
|
|
|
|
|
|
|
|
buildGoPackage rec { |
|
|
|
buildGoModule rec { |
|
|
|
pname = "openldap_exporter"; |
|
|
|
pname = "openldap_exporter"; |
|
|
|
version = "2.2.0"; |
|
|
|
version = "2.2.1"; |
|
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
src = fetchFromGitHub { |
|
|
|
owner = "tomcz"; |
|
|
|
owner = "tomcz"; |
|
|
|
repo = pname; |
|
|
|
repo = pname; |
|
|
|
rev = "v${version}"; |
|
|
|
rev = "v${version}"; |
|
|
|
sha256 = "sha256-+lrLA9CbGNzvvbwn79ili/kFRCr6vMKDtkvyfnL9n9k="; |
|
|
|
sha256 = "sha256-ok2fTYz1oQiNdTPsssPb/VuFqny1i8nKTngSpKgCpC4="; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendorSha256 = null; |
|
|
|
|
|
|
|
|
|
|
|
ldflags = [ |
|
|
|
ldflags = [ |
|
|
|
"-s" "-w" |
|
|
|
"-s" |
|
|
|
|
|
|
|
"-w" |
|
|
|
"-X github.com/tomcz/openldap_exporter.tag=v${version}" |
|
|
|
"-X github.com/tomcz/openldap_exporter.tag=v${version}" |
|
|
|
"-X github.com/tomcz/openldap_exporter.commit=unknown" |
|
|
|
"-X github.com/tomcz/openldap_exporter.commit=unknown" |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
goPackagePath = "github.com/tomcz/openldap_exporter"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
meta = with lib; { |
|
|
|
homepage = "https://github.com/tomcz/openldap_exporter"; |
|
|
|
homepage = "https://github.com/tomcz/openldap_exporter"; |
|
|
|