Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / lnd-exporter.nix
blob707d59b78bfa05eb4853d633ba70eb9007c88a94
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "lndmon";
5   version = "0.2.7";
7   src = fetchFromGitHub {
8     owner = "lightninglabs";
9     repo = "lndmon";
10     rev = "v${version}";
11     hash = "sha256-j9T60J7n9sya9/nN0Y6wsPDXN2h35pXxMdadsOkAMWI=";
12   };
14   vendorHash = "sha256-h9+/BOy1KFiqUUV35M548fDKFC3Q5mBaANuD7t1rpp8=";
16   # Irrelevant tools dependencies.
17   excludedPackages = [ "./tools" ];
19   passthru.tests = { inherit (nixosTests.prometheus-exporters) lnd; };
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   };