lol
1{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2
3buildGoModule rec {
4 pname = "lndmon";
5 version = "0.2.7";
6
7 src = fetchFromGitHub {
8 owner = "lightninglabs";
9 repo = "lndmon";
10 rev = "v${version}";
11 hash = "sha256-j9T60J7n9sya9/nN0Y6wsPDXN2h35pXxMdadsOkAMWI=";
12 };
13
14 vendorHash = "sha256-h9+/BOy1KFiqUUV35M548fDKFC3Q5mBaANuD7t1rpp8=";
15
16 # Irrelevant tools dependencies.
17 excludedPackages = [ "./tools" ];
18
19 passthru.tests = { inherit (nixosTests.prometheus-exporters) lnd; };
20
21 meta = with lib; {
22 homepage = "https://github.com/lightninglabs/lndmon";
23 description = "Prometheus exporter for lnd (Lightning Network Daemon)";
24 mainProgram = "lndmon";
25 license = licenses.mit;
26 maintainers = with maintainers; [ mmilata ];
27 };
28}