clightning-plugins: add prometheus patch for clightning 23.05

This commit is contained in:
Jonas Nick 2023-05-28 09:59:57 +00:00
parent 9aea69e799
commit 9c59b96add
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -33,6 +33,14 @@ let
patchRequirements = patchRequirements =
"--replace prometheus-client==0.6.0 prometheus-client==0.15.0" "--replace prometheus-client==0.6.0 prometheus-client==0.15.0"
+ " --replace pyln-client~=0.9.3 pyln-client~=23.02"; + " --replace pyln-client~=0.9.3 pyln-client~=23.02";
patches = [
# https://github.com/lightningd/plugins/pull/451
(pkgs.fetchpatch {
name = "202305-prometheus-msat-purge";
url = "https://github.com/lightningd/plugins/commit/f8a27b97a1b9ded8790c1f033b1f4268c0a6e210.patch";
sha256 = "sha256-0lFMhHHIi9bUU0+xaHhpnascNlFmr51JxE6e2F0s0zc=";
})
];
}; };
rebalance = { rebalance = {
description = "Keeps your channels balanced"; description = "Keeps your channels balanced";
@ -74,6 +82,8 @@ let
patchShebangs '${script}' patchShebangs '${script}'
''; '';
patches = plugin.patches or [];
passthru.path = "${drv}/${script}"; passthru.path = "${drv}/${script}";
meta = with lib; { meta = with lib; {