1 { lib, fetchFromGitHub, buildGoModule, nixosTests }:
4 pname = "prometheus-nextcloud-exporter";
7 src = fetchFromGitHub {
9 repo = "nextcloud-exporter";
11 sha256 = "sha256-tbzXxrAzMZyyePeI+Age31+XJFJcp+1RqoCAGCKaLmQ=";
14 vendorHash = "sha256-9ABGc5uSOIjhKcnTH5WOuwg0kXhFsxOlAkatcOQy3dg=";
16 passthru.tests = { inherit (nixosTests.prometheus-exporters) nextcloud; };
19 description = "Prometheus exporter for Nextcloud servers";
20 homepage = "https://github.com/xperimental/nextcloud-exporter";
21 license = licenses.mit;
22 maintainers = with maintainers; [ willibutz ];
23 mainProgram = "nextcloud-exporter";