2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, python3, pkgconfig, which, libtool, autoconf, automake,
|
2019-01-09 22:34:19 +00:00
|
|
|
autogen, sqlite, gmp, zlib, fetchzip }:
|
2018-06-21 03:48:12 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clightning-${version}";
|
2019-01-09 22:34:19 +00:00
|
|
|
version = "0.6.3";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
#
|
|
|
|
# NOTE 0.6.3 release zip was bugged, this zip is a fix provided by the team
|
|
|
|
# https://github.com/ElementsProject/lightning/issues/2254#issuecomment-453791475
|
|
|
|
#
|
|
|
|
# replace url with:
|
|
|
|
# https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip
|
|
|
|
# for future relases
|
|
|
|
#
|
|
|
|
url = "https://github.com/ElementsProject/lightning/files/2752675/clightning-v0.6.3.zip";
|
|
|
|
sha256 = "0k5pwimwn69pcakiq4a7qnjyf4i8w1jlacwrjazm1sfivr6nfiv6";
|
2018-06-21 03:48:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-11-22 18:16:36 +00:00
|
|
|
nativeBuildInputs = [ autoconf autogen automake libtool pkgconfig which ];
|
|
|
|
buildInputs = [ sqlite gmp zlib python3 ];
|
2018-06-21 03:48:12 +01:00
|
|
|
|
2019-01-09 22:34:19 +00:00
|
|
|
makeFlags = [ "prefix=$(out) VERSION=v${version}" ];
|
2018-06-21 03:48:12 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix=$out --disable-developer --disable-valgrind
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo "" > tools/refresh-submodules.sh
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|