2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-06-03 23:35:57 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
2020-12-21 19:35:02 +00:00
|
|
|
pname = "lndmon";
|
2023-07-08 03:08:38 +00:00
|
|
|
version = "0.2.7";
|
2020-06-03 23:35:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lightninglabs";
|
|
|
|
repo = "lndmon";
|
2023-07-08 03:08:38 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-j9T60J7n9sya9/nN0Y6wsPDXN2h35pXxMdadsOkAMWI=";
|
2020-06-03 23:35:57 +00:00
|
|
|
};
|
|
|
|
|
2023-07-08 03:08:38 +00:00
|
|
|
vendorHash = "sha256-h9+/BOy1KFiqUUV35M548fDKFC3Q5mBaANuD7t1rpp8=";
|
|
|
|
|
|
|
|
# Irrelevant tools dependencies.
|
|
|
|
excludedPackages = [ "./tools" ];
|
2020-06-03 23:35:57 +00:00
|
|
|
|
2020-06-18 10:48:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) lnd; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-05 21:38:18 +00:00
|
|
|
homepage = "https://github.com/lightninglabs/lndmon";
|
2020-06-03 23:35:57 +00:00
|
|
|
description = "Prometheus exporter for lnd (Lightning Network Daemon)";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmilata ];
|
|
|
|
};
|
|
|
|
}
|