2021-05-26 00:52:49 +02:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "charge-lnd";
|
2021-07-16 21:48:57 +02:00
|
|
|
version = "0.2.2";
|
2021-05-26 00:52:49 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "accumulator";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-16 21:48:57 +02:00
|
|
|
sha256 = "087y60hpld17bg2ya5nlh4m4sam4s6mx8vrqhm48idj1rmlcpfws";
|
2021-05-26 00:52:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aiorpcx
|
|
|
|
colorama
|
|
|
|
googleapis-common-protos
|
|
|
|
grpcio
|
|
|
|
protobuf
|
|
|
|
six
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install README.md charge.config.example -Dt $out/share/doc/charge-lnd
|
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/charge-lnd --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple policy-based fee manager for lightning network daemon";
|
|
|
|
homepage = "https://github.com/accumulator/charge-lnd";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ mmilata ];
|
|
|
|
};
|
|
|
|
}
|