nixpkgs/pkgs/servers/monitoring/prometheus/lnd-exporter.nix
2024-08-08 01:51:39 +00:00

29 lines
771 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "lndmon";
version = "0.2.8";
src = fetchFromGitHub {
owner = "lightninglabs";
repo = "lndmon";
rev = "v${version}";
hash = "sha256-PzmDotyuG8Fgkr6SlBWofqQamDG39v65fFjRUKjIWWM=";
};
vendorHash = "sha256-6wBA9OZcjGsbIgWzMXlcT2571sFvtYqIsHRfLAz/o60=";
# Irrelevant tools dependencies.
excludedPackages = [ "./tools" ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) lnd; };
meta = with lib; {
homepage = "https://github.com/lightninglabs/lndmon";
description = "Prometheus exporter for lnd (Lightning Network Daemon)";
mainProgram = "lndmon";
license = licenses.mit;
maintainers = with maintainers; [ mmilata ];
};
}