2022-07-15 05:44:08 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, nixosTests }:
|
2021-04-04 20:21:44 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "domain-exporter";
|
2022-07-15 05:44:08 +00:00
|
|
|
version = "1.17.1";
|
2021-04-04 20:21:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caarlos0";
|
|
|
|
repo = "domain_exporter";
|
|
|
|
rev = "v${version}";
|
2022-07-15 05:44:08 +00:00
|
|
|
hash = "sha256-18r+jUdVcv7hA9KdWkgvu2tNUIGf9f1uj2cwwMDnAs8=";
|
2021-04-04 20:21:44 +00:00
|
|
|
};
|
|
|
|
|
2022-07-15 05:44:08 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/caarlos0/domain_exporter/commit/32815b0956056c5c14313d0b860d1e9db754e545.patch";
|
|
|
|
hash = "sha256-iEYnJ4BU+MWQd0BgKmRb8RNj/lH2V/Z9uwFS2muR4Go=";
|
|
|
|
name = "sg_domains.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-LHs2DSLNe+E3NUXZS7TV5M53ueUbCjjNM87UPRTaCpo=";
|
2021-04-04 20:21:44 +00:00
|
|
|
|
|
|
|
doCheck = false; # needs internet connection
|
|
|
|
|
2021-04-04 20:25:12 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) domain; };
|
|
|
|
|
2021-04-04 20:21:44 +00: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;
|
2022-07-15 05:44:08 +00:00
|
|
|
maintainers = with maintainers; [ mmilata prusnak peterhoeg ];
|
2021-04-04 20:21:44 +00:00
|
|
|
};
|
|
|
|
}
|