nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nixosTests,
6}:
7
8buildGoModule rec {
9 pname = "domain-exporter";
10 version = "1.24.1";
11
12 src = fetchFromGitHub {
13 owner = "caarlos0";
14 repo = "domain_exporter";
15 rev = "v${version}";
16 hash = "sha256-qk/shaWY7M2JDx6W4e7z8Nv7yWUZKZNGZE/mj4zCZHw=";
17 };
18
19 vendorHash = "sha256-1j5alRdCbO/ZJhuvVuiSsNBMRm7RqMOY/ex6US7qaxU=";
20
21 doCheck = false; # needs internet connection
22
23 passthru.tests = { inherit (nixosTests.prometheus-exporters) domain; };
24
25 meta = {
26 homepage = "https://github.com/caarlos0/domain_exporter";
27 description = "Exports the expiration time of your domains as prometheus metrics";
28 mainProgram = "domain_exporter";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [
31 mmilata
32 peterhoeg
33 caarlos0
34 ];
35 };
36}