841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
39 lines
914 B
Nix
39 lines
914 B
Nix
{ lib, fetchFromGitHub, python3Packages }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "charge-lnd";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "accumulator";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0npn45qbbsbzj5qy9kwx662hml1y610ysmfl89sda02l6wf1sp3y";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|