From 9423eadcee379157f639a2c6f4f44fd7b310e164 Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Mon, 21 Dec 2020 10:50:50 +0000 Subject: [PATCH] clboss: add pkg --- pkgs/clboss/default.nix | 26 ++++++++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/clboss/default.nix diff --git a/pkgs/clboss/default.nix b/pkgs/clboss/default.nix new file mode 100644 index 0000000..f7f5725 --- /dev/null +++ b/pkgs/clboss/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, pkgconfig, curl, libev, sqlite }: + +let + curlWithGnuTLS = curl.override { gnutlsSupport = true; sslSupport = false; }; +in +stdenv.mkDerivation rec { + pname = "clboss"; + version = "0.10"; + + src = fetchurl { + url = "https://github.com/ZmnSCPxj/clboss/releases/download/v${version}/clboss-${version}.tar.gz"; + sha256 = "1bmlpfhsjs046qx2ikln15rj4kal32752zs1s5yjklsq9xwnbciz"; + }; + + nativeBuildInputs = [ pkgconfig libev curlWithGnuTLS sqlite ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Automated C-Lightning Node Manager"; + homepage = "https://github.com/ZmnSCPxj/clboss"; + maintainers = with maintainers; [ nixbitcoin ]; + license = licenses.mit; + platforms = platforms.linux; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 166715d..a054663 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -14,6 +14,7 @@ let self = { lightning-loop = pkgs.callPackage ./lightning-loop { }; extra-container = pkgs.callPackage ./extra-container { }; clightning-plugins = import ./clightning-plugins pkgs self.nbPython3Packages; + clboss = pkgs.callPackage ./clboss { }; nbPython3Packages = (pkgs.python3.override { packageOverrides = pySelf: super: import ./python-packages self pySelf;