Files
nixpkgs/pkgs/by-name/ch/charge-lnd/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
makeWrapper,
}:
python3Packages.buildPythonApplication rec {
pname = "charge-lnd";
version = "0.3.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "accumulator";
repo = "charge-lnd";
tag = "v${version}";
hash = "sha256-rACpIHVVq4q3iOEJgJbslCzEcP3qYrc3rZQ85YJfzoQ=";
};
build-system = with python3Packages; [
setuptools
];
propagatedBuildInputs = with python3Packages; [
aiorpcx
colorama
googleapis-common-protos
grpcio
protobuf
six
termcolor
];
nativeBuildInputs = [
makeWrapper
];
postInstall = ''
install README.md -Dt $out/share/doc/charge-lnd
wrapProgram $out/bin/charge-lnd \
--set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION "python"
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/charge-lnd --help > /dev/null
'';
env = {
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
};
meta = {
description = "Simple policy-based fee manager for lightning network daemon";
homepage = "https://github.com/accumulator/charge-lnd";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
mmilata
mariaa144
];
mainProgram = "charge-lnd";
};
}