mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
771 B
Nix
29 lines
771 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "lndmon";
|
|
version = "0.2.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lightninglabs";
|
|
repo = "lndmon";
|
|
rev = "v${version}";
|
|
hash = "sha256-j9T60J7n9sya9/nN0Y6wsPDXN2h35pXxMdadsOkAMWI=";
|
|
};
|
|
|
|
vendorHash = "sha256-h9+/BOy1KFiqUUV35M548fDKFC3Q5mBaANuD7t1rpp8=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|