nixpkgs/pkgs/servers/monitoring/prometheus/lnd-exporter.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
771 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "lndmon";
version = "0.2.7";
src = fetchFromGitHub {
owner = "lightninglabs";
repo = "lndmon";
rev = "v${version}";
hash = "sha256-j9T60J7n9sya9/nN0Y6wsPDXN2h35pXxMdadsOkAMWI=";
};
vendorHash = "sha256-h9+/BOy1KFiqUUV35M548fDKFC3Q5mBaANuD7t1rpp8=";
# 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 ];
};
}