nix-bitcoin/pkgs/clnrest/default.nix
Erik Arvstedt c4cd252753
update nixpkgs
bitcoind-knots: 29.2.knots20251010 -> 29.2.knots20251110
clightning: 25.09 -> 25.09.2
lightning-loop: 0.31.2-beta -> 0.31.5-beta
2025-11-22 15:21:32 +01:00

43 lines
877 B
Nix

{
lib,
rustPlatform,
clightning,
unzip,
protobuf,
}:
rustPlatform.buildRustPackage rec {
pname = "clnrest";
version = "0.2.0";
inherit (clightning) src;
cargoHash = "sha256-2xOLwj42Ua85+kn73y+5q3YmzKYMCjxLlq/UrYjiZv0=";
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";
};
}