lol
1{ lib, buildGoModule, fetchFromGitHub, fetchpatch, nixosTests }:
2
3buildGoModule rec {
4 pname = "domain-exporter";
5 version = "1.23.0";
6
7 src = fetchFromGitHub {
8 owner = "caarlos0";
9 repo = "domain_exporter";
10 rev = "v${version}";
11 hash = "sha256-5GyDQkd8zXZ9TtauWfW9uW8xkgtEICFm6f4Q/jVqOBc=";
12 };
13
14 vendorHash = "sha256-EPpzrig40WXt5mo/vPTFjh+gYdFOlMknjNJHNChlQwk=";
15
16 doCheck = false; # needs internet connection
17
18 passthru.tests = { inherit (nixosTests.prometheus-exporters) domain; };
19
20 meta = with lib; {
21 homepage = "https://github.com/caarlos0/domain_exporter";
22 description = "Exports the expiration time of your domains as prometheus metrics";
23 mainProgram = "domain_exporter";
24 license = licenses.mit;
25 maintainers = with maintainers; [ mmilata prusnak peterhoeg caarlos0 ];
26 };
27}