bitcoin: 30.0 -> 30.2 bitcoind: 30.0 -> 30.2 bitcoind-knots: 29.2.knots20251110 -> 29.3.knots20260210 btcpayserver: 2.2.1 -> 2.3.4 clightning: 25.09.2 -> 25.12.1 elementsd: 23.2.4 -> 23.3.2 lnd: 0.19.3-beta -> 0.20.1-beta lnd 0.20 makes its chain notifier subsystem ready later in startup than its RPC server. lightning-loop and lightning-pool both subscribe to chain notifications right after dialing lnd, which fails before the notifier is up and crashes the daemon. Add a 5s ExecStartPre sleep to both services as a temporary workaround.
44 lines
877 B
Nix
44 lines
877 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
clightning,
|
|
unzip,
|
|
protobuf,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "clnrest";
|
|
version = "0.2.0";
|
|
|
|
inherit (clightning) src;
|
|
|
|
cargoHash = "sha256-SjGvKeDBZzbn4TR2nbGHb3XAon0Dv4KtSlkzX+eji8c=";
|
|
|
|
depsExtraArgs = {
|
|
nativeBuildInputs = [ unzip ];
|
|
# Don't run `configure` of the main project build
|
|
dontConfigure = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
# For unpacking the src
|
|
unzip
|
|
];
|
|
|
|
cargoBuildFlags = [ "--package clnrest" ];
|
|
|
|
nativeCheckInputs = [
|
|
# Required by lightning/cln-grpc/build.rs
|
|
protobuf
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "REST plugin for clightning";
|
|
homepage = "https://github.com/ElementsProject/lightning/tree/master/plugins/rest-plugin";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
erikarvstedt
|
|
];
|
|
mainProgram = "clnrest";
|
|
};
|
|
}
|