nixpkgs/pkgs/applications/blockchains/charge-lnd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
914 B
Nix
Raw Normal View History

2021-05-25 23:52:49 +01:00
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "charge-lnd";
2021-09-06 03:47:42 +01:00
version = "0.2.4";
2021-05-25 23:52:49 +01:00
src = fetchFromGitHub {
owner = "accumulator";
repo = pname;
rev = "v${version}";
2021-09-06 03:47:42 +01:00
sha256 = "1d1cbpmpppp7z1bmsarwfs314c7ypchlyr4calx0fzxfpxzfks5k";
2021-05-25 23:52:49 +01: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 ];
};
}