diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2022-08-26 11:03:08 +0200 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2022-08-29 13:22:37 +0200 |
commit | de2ae287d56322cc8ab53e23563bc840a4ffa1dc (patch) | |
tree | 66497cbb5adfa483a02e03f701c57872742c20a5 /pkgs/applications/blockchains/clightning | |
parent | b174f2eef632fc37cda1c6493ab1b88edd97bf02 (diff) |
clightning: 0.11.2 -> 0.12.0
Co-Authored-By: Jonas Nick <jonasd.nick@gmail.com>
Diffstat (limited to 'pkgs/applications/blockchains/clightning')
-rw-r--r-- | pkgs/applications/blockchains/clightning/default.nix | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/applications/blockchains/clightning/default.nix b/pkgs/applications/blockchains/clightning/default.nix index 27e2fea2845ec..8e87610e03fc2 100644 --- a/pkgs/applications/blockchains/clightning/default.nix +++ b/pkgs/applications/blockchains/clightning/default.nix @@ -3,11 +3,11 @@ , darwin , fetchurl , autoconf -, automake , autogen +, automake , gettext , libtool -, pkg-config +, protobuf , unzip , which , gmp @@ -17,25 +17,34 @@ , zlib }: let - py3 = python3.withPackages (p: [ p.Mako p.mrkd ]); + py3 = python3.withPackages (p: [ p.Mako ]); in stdenv.mkDerivation rec { pname = "clightning"; - version = "0.11.2"; + version = "0.12.0"; src = fetchurl { url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip"; - sha256 = "09qqfnj809dpwar9ijm3ic5cv4019hsnvh2h6sfpdqp1smf9igxs"; + sha256 = "1ff400339db3d314b459e1a3e973f1213783e814faa21f2e1b18917693cabfd9"; + }; + + manpages = fetchurl { + url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}-manpages.tar.xz"; + sha256 = "sha256-7EohXp0/gIJwlMsTHwlcLNBzZb8LwF9n0eXkQhOnY7g="; }; # when building on darwin we need dawin.cctools to provide the correct libtool # as libwally-core detects the host as darwin and tries to add the -static # option to libtool, also we have to add the modified gsed package. - nativeBuildInputs = [ autogen autoconf automake gettext pkg-config py3 unzip which ] - ++ lib.optionals stdenv.isDarwin [ darwin.cctools darwin.autoSignDarwinBinariesHook ] ++ [ libtool ]; + nativeBuildInputs = [ autoconf autogen automake gettext libtool protobuf py3 unzip which ] + ++ lib.optionals stdenv.isDarwin [ darwin.cctools darwin.autoSignDarwinBinariesHook ]; buildInputs = [ gmp libsodium sqlite zlib ]; + postUnpack = '' + tar -xf $manpages -C $sourceRoot + ''; + # this causes some python trouble on a darwin host so we skip this step. # also we have to tell libwally-core to use sed instead of gsed. postPatch = if !stdenv.isDarwin then '' |