nix-bitcoin/pkgs/clboss/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, pkgconfig, curl, libev, sqlite }:
2020-12-21 13:50:50 +03:00
let
2021-12-08 15:14:34 +03:00
curlWithGnuTLS = curl.override { gnutlsSupport = true; opensslSupport = false; };
2020-12-21 13:50:50 +03:00
in
stdenv.mkDerivation rec {
pname = "clboss";
2022-05-30 22:09:55 +03:00
version = "0.13A";
2020-12-21 13:50:50 +03:00
src = fetchurl {
2021-04-11 15:39:08 +03:00
url = "https://github.com/ZmnSCPxj/clboss/releases/download/${version}/clboss-${version}.tar.gz";
2022-05-30 22:09:55 +03:00
hash = "sha256-LTDJrm9Mk4j7Z++tKJKawEurgF1TnYuIoj+APbDHll4=";
2020-12-21 13:50:50 +03:00
};
patches = [
# https://github.com/ZmnSCPxj/clboss/pull/162, required for clighting 23.05
(fetchpatch {
name = "fix-json-rpc";
url = "https://github.com/ZmnSCPxj/clboss/commit/a4bb0192550803db3d07628a29284a76f7204365.patch";
sha256 = "sha256-1iBJlOnt7n2xXNDgzH3PAvLryZcpM4VWNaWcEegbapQ=";
})
];
2020-12-21 13:50:50 +03:00
nativeBuildInputs = [ pkgconfig libev curlWithGnuTLS sqlite ];
enableParallelBuilding = true;
meta = with lib; {
2020-12-21 13:50:50 +03:00
description = "Automated C-Lightning Node Manager";
homepage = "https://github.com/ZmnSCPxj/clboss";
license = licenses.mit;
maintainers = with maintainers; [ nixbitcoin ];
2020-12-21 13:50:50 +03:00
platforms = platforms.linux;
};
}