2019-08-05 16:51:27 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
|
|
|
|
2019-10-13 17:46:39 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-05 16:51:27 +01:00
|
|
|
pname = "prometheus-nextcloud-exporter";
|
2019-10-13 17:46:39 +01:00
|
|
|
version = "0.1.0";
|
2019-08-05 16:51:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xperimental";
|
|
|
|
repo = "nextcloud-exporter";
|
2019-10-13 17:46:39 +01:00
|
|
|
rev = "v${version}";
|
2019-08-05 16:51:27 +01:00
|
|
|
sha256 = "1xpc6q6zp92ckkyd24cfl65vyzjv60qwh44ys6mza4k6yrxhacv4";
|
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/xperimental/nextcloud-exporter";
|
|
|
|
|
|
|
|
goDeps = ./nextcloud-exporter-deps.nix;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Prometheus exporter for Nextcloud servers.";
|
|
|
|
homepage = "https://github.com/xperimental/nextcloud-exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|