mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-26 08:10:41 +03:00
clboss: 0.13A -> 0.13
This commit is contained in:
parent
8db4a1ece5
commit
b6df5cb130
@ -12,11 +12,6 @@ let cfg = config.services.clightning.plugins.clboss; in
|
|||||||
See also: https://github.com/ZmnSCPxj/clboss#operating
|
See also: https://github.com/ZmnSCPxj/clboss#operating
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
acknowledgeDeprecation = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
internal = true;
|
|
||||||
};
|
|
||||||
min-onchain = mkOption {
|
min-onchain = mkOption {
|
||||||
type = types.ints.positive;
|
type = types.ints.positive;
|
||||||
default = 30000;
|
default = 30000;
|
||||||
@ -54,22 +49,6 @@ let cfg = config.services.clightning.plugins.clboss; in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions = [
|
|
||||||
{
|
|
||||||
assertion = cfg.acknowledgeDeprecation;
|
|
||||||
message = ''
|
|
||||||
`clboss` is no longer maintained and has been deprecated.
|
|
||||||
|
|
||||||
Warning: For compatibility with clighting 23.05, the nix-bitcoin `clboss` package
|
|
||||||
includes a third-party fix that has not been thoroughly tested:
|
|
||||||
https://github.com/ZmnSCPxj/clboss/pull/162
|
|
||||||
|
|
||||||
To ignore this warning and continue using `clboss`, add the following to your config:
|
|
||||||
services.clightning.plugins.clboss.acknowledgeDeprecation = true;
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
services.clightning.extraConfig = ''
|
services.clightning.extraConfig = ''
|
||||||
plugin=${cfg.package}/bin/clboss
|
plugin=${cfg.package}/bin/clboss
|
||||||
clboss-min-onchain=${toString cfg.min-onchain}
|
clboss-min-onchain=${toString cfg.min-onchain}
|
||||||
|
@ -100,6 +100,13 @@ in {
|
|||||||
Lightning) module or the clightning-rest module in combination with the
|
Lightning) module or the clightning-rest module in combination with the
|
||||||
Zeus mobile wallet.
|
Zeus mobile wallet.
|
||||||
'')
|
'')
|
||||||
|
]
|
||||||
|
++
|
||||||
|
# 0.0.98
|
||||||
|
[
|
||||||
|
(mkRemovedOptionModule [ "services" "clightning" "plugins" "clboss" "acknowledgeDeprecation" ] ''
|
||||||
|
`clboss` is maintained again and has been un-deprecated.
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
# Migrate old clightning-rest datadir from nix-bitcoin versions < 0.0.70
|
# Migrate old clightning-rest datadir from nix-bitcoin versions < 0.0.70
|
||||||
|
@ -1,33 +1,34 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchpatch, pkgconfig, curl, libev, sqlite }:
|
{ lib, stdenv, fetchFromGitHub, autoconf-archive, autoreconfHook, pkgconfig, curl, libev, sqlite }:
|
||||||
|
|
||||||
let
|
let
|
||||||
curlWithGnuTLS = curl.override { gnutlsSupport = true; opensslSupport = false; };
|
curlWithGnuTLS = curl.override { gnutlsSupport = true; opensslSupport = false; };
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "clboss";
|
pname = "clboss";
|
||||||
version = "0.13A";
|
version = "0.13";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/ZmnSCPxj/clboss/releases/download/${version}/clboss-${version}.tar.gz";
|
owner = "ZmnSCPxj";
|
||||||
hash = "sha256-LTDJrm9Mk4j7Z++tKJKawEurgF1TnYuIoj+APbDHll4=";
|
repo = "clboss";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-NP9blymdqDXo/OtGLQg/MXK24PpPvCrzqXRdtfCvpfI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [
|
||||||
# https://github.com/ZmnSCPxj/clboss/pull/162, required for clighting 23.05
|
autoreconfHook
|
||||||
(fetchpatch {
|
autoconf-archive
|
||||||
name = "fix-json-rpc";
|
pkgconfig
|
||||||
url = "https://github.com/ZmnSCPxj/clboss/commit/a4bb0192550803db3d07628a29284a76f7204365.patch";
|
libev
|
||||||
sha256 = "sha256-1iBJlOnt7n2xXNDgzH3PAvLryZcpM4VWNaWcEegbapQ=";
|
curlWithGnuTLS
|
||||||
})
|
sqlite
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig libev curlWithGnuTLS sqlite ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Automated C-Lightning Node Manager";
|
description = "Automated C-Lightning Node Manager";
|
||||||
homepage = "https://github.com/ZmnSCPxj/clboss";
|
homepage = "https://github.com/ZmnSCPxj/clboss";
|
||||||
|
changelog = "https://github.com/ZmnSCPxj/clboss/blob/v${version}/ChangeLog";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ nixbitcoin ];
|
maintainers = with maintainers; [ nixbitcoin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
@ -148,7 +148,6 @@ let
|
|||||||
(mkIf config.test.features.clightningPlugins {
|
(mkIf config.test.features.clightningPlugins {
|
||||||
services.clightning.plugins = {
|
services.clightning.plugins = {
|
||||||
clboss.enable = true;
|
clboss.enable = true;
|
||||||
clboss.acknowledgeDeprecation = true;
|
|
||||||
feeadjuster.enable = true;
|
feeadjuster.enable = true;
|
||||||
helpme.enable = true;
|
helpme.enable = true;
|
||||||
monitor.enable = true;
|
monitor.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user