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
883 B
Nix
37 lines
883 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "unpoller";
|
|
version = "2.15.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unpoller";
|
|
repo = "unpoller";
|
|
rev = "v${version}";
|
|
hash = "sha256-srAskagINMPWG+k6bbUD+8QZyD7C3PbsApQfeEF01NE=";
|
|
};
|
|
|
|
vendorHash = "sha256-kS+UUD6lexYAy7so7DGq6PiOYHSwLFcOw7+KC2jIlMg=";
|
|
|
|
ldflags = [
|
|
"-w"
|
|
"-s"
|
|
"-X golift.io/version.Version=${version}"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) unpoller; };
|
|
|
|
meta = {
|
|
description = "Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus";
|
|
homepage = "https://github.com/unpoller/unpoller";
|
|
changelog = "https://github.com/unpoller/unpoller/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ Frostman ];
|
|
};
|
|
}
|