Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
771 B
Nix
28 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 ];
|
|
};
|
|
}
|