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