btcpayserver: 2.1.1 -> 2.1.5 clightning: 25.02.2 -> 25.05 lightning-loop: 0.31.1-beta -> 0.31.2-beta lnd: 0.19.0-beta -> 0.19.1-beta
43 lines
877 B
Nix
43 lines
877 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
clightning,
|
|
unzip,
|
|
protobuf,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "clnrest";
|
|
version = "0.2.0";
|
|
|
|
inherit (clightning) src;
|
|
|
|
cargoHash = "sha256-HxFfiFlILv8OOHn6Yt5cC41Gw0eya4uCAwXdK83X1bQ=";
|
|
|
|
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";
|
|
};
|
|
}
|