diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2021-01-25 18:29:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 18:29:33 +0100 |
commit | e06e84759533c03b308b8b706da33908b4ef1cb9 (patch) | |
tree | ad41d389e1984945b24aebcaf5363e885195606b | |
parent | 67fabbc7c3371ecfa4c32d9160976a5f129b4ede (diff) | |
parent | 59db3cdf1ea41a198a8ec5ca78cc11653da187b3 (diff) |
Merge pull request #110236 from prusnak/clightning
clightning: 0.9.2 -> 0.9.3
-rw-r--r-- | pkgs/applications/blockchains/clightning.nix | 54 |
1 files changed, 33 insertions, 21 deletions
diff --git a/pkgs/applications/blockchains/clightning.nix b/pkgs/applications/blockchains/clightning.nix index ef351d0843fd0..fa4d8b8d4da4b 100644 --- a/pkgs/applications/blockchains/clightning.nix +++ b/pkgs/applications/blockchains/clightning.nix @@ -1,28 +1,34 @@ -{ lib, stdenv, python3, pkg-config, which, libtool, autoconf, automake, - autogen, sqlite, gmp, zlib, fetchurl, unzip, fetchpatch, gettext }: - -with lib; +{ lib +, stdenv +, fetchurl +, autoconf +, automake +, autogen +, gettext +, libtool +, pkg-config +, unzip +, which +, gmp +, python3 +, sqlite +, zlib +}: +let + py3 = python3.withPackages (p: [ p.Mako ]); +in stdenv.mkDerivation rec { pname = "clightning"; - version = "0.9.2"; + version = "0.9.3"; src = fetchurl { url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip"; - sha256 = "022fw6rbn0chg0432h9q05w8qnys0hd9hf1qm2qlnnmamxw4dyfy"; + sha256 = "b4563921ed8bccd59d32b031f81825dc57fbe90882f0ecd5da89e48b59ff18b2"; }; - enableParallelBuilding = true; - - nativeBuildInputs = [ autoconf autogen automake libtool pkg-config which unzip gettext ]; - buildInputs = - let py3 = python3.withPackages (p: [ p.Mako ]); - in [ sqlite gmp zlib py3 ]; - - makeFlags = [ "prefix=$(out) VERSION=v${version}" ]; + nativeBuildInputs = [ autogen autoconf automake gettext libtool pkg-config py3 unzip which ]; - configurePhase = '' - ./configure --prefix=$out --disable-developer --disable-valgrind - ''; + buildInputs = [ gmp sqlite zlib ]; postPatch = '' patchShebangs \ @@ -32,18 +38,24 @@ stdenv.mkDerivation rec { devtools/sql-rewrite.py ''; - doCheck = false; + configurePhase = '' + ./configure --prefix=$out --disable-developer --disable-valgrind + ''; + + makeFlags = [ "prefix=$(out) VERSION=v${version}" ]; + + enableParallelBuilding = true; - meta = { + meta = with lib; { description = "A Bitcoin Lightning Network implementation in C"; - longDescription= '' + longDescription = '' c-lightning is a standard compliant implementation of the Lightning Network protocol. The Lightning Network is a scalability solution for Bitcoin, enabling secure and instant transfer of funds between any two parties for any amount. ''; homepage = "https://github.com/ElementsProject/lightning"; - maintainers = with maintainers; [ jb55 ]; + maintainers = with maintainers; [ jb55 prusnak ]; license = licenses.mit; platforms = platforms.linux; }; |