mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
28 lines
827 B
Nix
28 lines
827 B
Nix
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "domain-exporter";
|
|
version = "1.23.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "caarlos0";
|
|
repo = "domain_exporter";
|
|
rev = "v${version}";
|
|
hash = "sha256-5GyDQkd8zXZ9TtauWfW9uW8xkgtEICFm6f4Q/jVqOBc=";
|
|
};
|
|
|
|
vendorHash = "sha256-EPpzrig40WXt5mo/vPTFjh+gYdFOlMknjNJHNChlQwk=";
|
|
|
|
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 prusnak peterhoeg caarlos0 ];
|
|
};
|
|
}
|