nix-bitcoin/pkgs/clnrest/default.nix
Jonas Nick 14d0b33d20
update nixpkgs
bitcoind-knots: 28.1.knots20250305 -> 29.1.knots20250903
charge-lnd: 0.3.0 -> 0.3.1
clightning: 25.05 -> 25.09
2025-10-07 09:19:22 +00: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-UxMXBO/rpanNU8vz8y4V5wSbCNHKYmVXtoGRpOqI+A0=";
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";
};
}