2021-01-17 12:05:49 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, nixosTests, fetchpatch }:
|
2019-08-05 17:51:27 +02:00
|
|
|
|
2021-01-17 12:05:49 +01:00
|
|
|
buildGoModule rec {
|
2019-08-05 17:51:27 +02:00
|
|
|
pname = "prometheus-nextcloud-exporter";
|
2022-02-13 01:12:38 +01:00
|
|
|
version = "0.5.0";
|
2019-08-05 17:51:27 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xperimental";
|
|
|
|
repo = "nextcloud-exporter";
|
2019-10-13 18:46:39 +02:00
|
|
|
rev = "v${version}";
|
2022-02-13 01:12:38 +01:00
|
|
|
sha256 = "sha256-73IxGxnKgbG50nr57Wft+hh0KT7redrwXc4EZFn25qs=";
|
2019-08-05 17:51:27 +02:00
|
|
|
};
|
|
|
|
|
2022-02-13 01:12:38 +01:00
|
|
|
vendorSha256 = "sha256-vIhHUFg8m6raKF82DcXRGKCgSM2FJ2VTM+MdMjP7KUY=";
|
2019-08-05 17:51:27 +02:00
|
|
|
|
2020-06-18 12:48:40 +02:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) nextcloud; };
|
|
|
|
|
2019-08-05 17:51:27 +02:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Prometheus exporter for Nextcloud servers";
|
2019-08-05 17:51:27 +02:00
|
|
|
homepage = "https://github.com/xperimental/nextcloud-exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|