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-04-22 16:49:15 +02:00
|
|
|
version = "0.5.1";
|
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-04-22 16:49:15 +02:00
|
|
|
sha256 = "18xvxx0aplkj7xzi0zfsz7a5d45hh8blfqb105360pknvvi6apjv";
|
2019-08-05 17:51:27 +02:00
|
|
|
};
|
|
|
|
|
2022-04-22 16:49:15 +02:00
|
|
|
vendorSha256 = "1wr1ckz0klk9sqpyk96h8bwr1dg6aiirr1l1f23kbib91pfpd08r";
|
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 ];
|
2022-05-05 02:46:39 +02:00
|
|
|
mainProgram = "nextcloud-exporter";
|
2019-08-05 17:51:27 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|