Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
838 B
Nix
37 lines
838 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "domain-exporter";
|
|
version = "1.24.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "caarlos0";
|
|
repo = "domain_exporter";
|
|
rev = "v${version}";
|
|
hash = "sha256-qk/shaWY7M2JDx6W4e7z8Nv7yWUZKZNGZE/mj4zCZHw=";
|
|
};
|
|
|
|
vendorHash = "sha256-1j5alRdCbO/ZJhuvVuiSsNBMRm7RqMOY/ex6US7qaxU=";
|
|
|
|
doCheck = false; # needs internet connection
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) domain; };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/caarlos0/domain_exporter";
|
|
description = "Exports the expiration time of your domains as prometheus metrics";
|
|
mainProgram = "domain_exporter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
mmilata
|
|
peterhoeg
|
|
caarlos0
|
|
];
|
|
};
|
|
}
|