2021-04-04 21:21:44 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "domain-exporter";
|
2021-05-11 05:08:38 +01:00
|
|
|
version = "1.11.0";
|
2021-04-04 21:21:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caarlos0";
|
|
|
|
repo = "domain_exporter";
|
|
|
|
rev = "v${version}";
|
2021-05-11 05:08:38 +01:00
|
|
|
sha256 = "018y0xwdn2f2shhwaa0hqm4y8xsbqwif0733qb0377wpjbj4v137";
|
2021-04-04 21:21:44 +01:00
|
|
|
};
|
|
|
|
|
2021-05-11 05:08:38 +01:00
|
|
|
vendorSha256 = "0s1hs8byba9y57abg386n09wfg1wcqpzs164ap0km8ap2i96bdlb";
|
2021-04-04 21:21:44 +01:00
|
|
|
|
|
|
|
doCheck = false; # needs internet connection
|
|
|
|
|
2021-04-04 21:25:12 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) domain; };
|
|
|
|
|
2021-04-04 21:21:44 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/caarlos0/domain_exporter";
|
|
|
|
description = "Exports the expiration time of your domains as prometheus metrics";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmilata prusnak ];
|
|
|
|
};
|
|
|
|
}
|