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
912 B
Nix
Raw Normal View History

2021-05-25 22:52:49 +00:00
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "charge-lnd";
2022-11-25 16:48:20 +00:00
version = "0.2.13";
2021-05-25 22:52:49 +00:00
src = fetchFromGitHub {
owner = "accumulator";
repo = pname;
2022-11-25 16:48:20 +00:00
rev = "refs/tags/v${version}";
sha256 = "sha256-mNU8bhiZqvYbNUU8vJNk9WbpAVrCTi9Fy3hlIpb06ac=";
2021-05-25 22:52:49 +00:00
};
propagatedBuildInputs = with python3Packages; [
aiorpcx
colorama
googleapis-common-protos
grpcio
protobuf
six
termcolor
];
postInstall = ''
2022-07-25 13:21:22 +00:00
install README.md -Dt $out/share/doc/charge-lnd
2021-05-25 22:52:49 +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-07-25 13:21:22 +00:00
maintainers = with maintainers; [ mmilata mariaa144 ];
2021-05-25 22:52:49 +00:00
};
}