mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
29 lines
771 B
Nix
29 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 ];
|
|
};
|
|
}
|