2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, python3, pkgconfig, which, libtool, autoconf, automake,
|
2019-03-04 13:21:56 +01:00
|
|
|
autogen, sqlite, gmp, zlib, fetchurl, unzip, fetchpatch }:
|
2018-06-21 04:48:12 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clightning-${version}";
|
2019-07-08 14:50:40 +02:00
|
|
|
version = "0.7.1";
|
2019-03-04 13:21:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
|
2019-07-08 14:50:40 +02:00
|
|
|
sha256 = "557be34410f27a8d55d9f31a40717a8f5e99829f2bd114c24e7ca1dd5f6b7d85";
|
2018-06-21 04:48:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-03-04 13:21:56 +01:00
|
|
|
nativeBuildInputs = [ autoconf autogen automake libtool pkgconfig which unzip ];
|
2018-11-22 19:16:36 +01:00
|
|
|
buildInputs = [ sqlite gmp zlib python3 ];
|
2018-06-21 04:48:12 +02:00
|
|
|
|
2019-01-09 23:34:19 +01:00
|
|
|
makeFlags = [ "prefix=$(out) VERSION=v${version}" ];
|
2018-06-21 04:48:12 +02:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix=$out --disable-developer --disable-valgrind
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tools/generate-wire.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Bitcoin Lightning Network implementation in C";
|
|
|
|
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 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|