clightning-plugins/prometheus: fix patch not being applied
`patchPhase` can't be used with `buildCommand`.
This commit is contained in:
parent
e3190b244f
commit
1b741c7cc1
1 changed files with 17 additions and 16 deletions
|
|
@ -3,14 +3,25 @@ pkgs: nbPython3Packages:
|
||||||
let
|
let
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.applyPatches {
|
||||||
owner = "lightningd";
|
src = pkgs.fetchFromGitHub {
|
||||||
repo = "plugins";
|
owner = "lightningd";
|
||||||
rev = "eee5e90df442586b7f891df4fc0c67d273534737";
|
repo = "plugins";
|
||||||
sha256 = "0ry6gxp9gqpzpdjykx0a5q53saai5jydwvcy6smsh0f5dmjl8srh";
|
rev = "eee5e90df442586b7f891df4fc0c67d273534737";
|
||||||
|
sha256 = "0ry6gxp9gqpzpdjykx0a5q53saai5jydwvcy6smsh0f5dmjl8srh";
|
||||||
|
};
|
||||||
|
|
||||||
|
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=";
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
version = builtins.substring 0 7 src.rev;
|
version = builtins.substring 0 7 src.src.rev;
|
||||||
|
|
||||||
plugins = with nbPython3Packages; {
|
plugins = with nbPython3Packages; {
|
||||||
currencyrate = {
|
currencyrate = {
|
||||||
|
|
@ -33,14 +44,6 @@ 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";
|
||||||
|
|
@ -82,8 +85,6 @@ let
|
||||||
patchShebangs '${script}'
|
patchShebangs '${script}'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = plugin.patches or [];
|
|
||||||
|
|
||||||
passthru.path = "${drv}/${script}";
|
passthru.path = "${drv}/${script}";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue