2021-06-06 07:54:09 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "charge-lnd";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "0.2.13";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "accumulator";
|
|
|
|
repo = pname;
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-mNU8bhiZqvYbNUU8vJNk9WbpAVrCTi9Fy3hlIpb06ac=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aiorpcx
|
|
|
|
colorama
|
|
|
|
googleapis-common-protos
|
|
|
|
grpcio
|
|
|
|
protobuf
|
|
|
|
six
|
|
|
|
termcolor
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
install README.md -Dt $out/share/doc/charge-lnd
|
2021-06-06 07:54:09 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ mmilata mariaa144 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "charge-lnd";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
}
|