2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, python3, pkgconfig, which, libtool, autoconf, automake,
|
2019-10-29 07:52:43 +00:00
|
|
|
autogen, sqlite, gmp, zlib, fetchurl, unzip, fetchpatch, gettext }:
|
2018-06-21 03:48:12 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "clightning";
|
2020-08-22 05:31:41 +01:00
|
|
|
version = "0.9.0-1";
|
2019-03-04 12:21:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
|
2020-08-22 05:31:41 +01:00
|
|
|
sha256 = "01cwcrqysqsrf96bbbj0grm8j5m46a3acgwy0kzxdx05jdzld9sc";
|
2018-06-21 03:48:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-10-29 07:52:43 +00:00
|
|
|
nativeBuildInputs = [ autoconf autogen automake libtool pkgconfig which unzip gettext ];
|
2019-08-30 13:34:39 +01:00
|
|
|
buildInputs =
|
|
|
|
let py3 = python3.withPackages (p: [ p.Mako ]);
|
|
|
|
in [ sqlite gmp zlib py3 ];
|
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 = ''
|
2019-08-30 13:34:39 +01:00
|
|
|
patchShebangs \
|
|
|
|
tools/generate-wire.py \
|
|
|
|
tools/update-mocks.sh \
|
2019-10-29 07:52:43 +00:00
|
|
|
tools/mockup.sh \
|
|
|
|
devtools/sql-rewrite.py
|
2018-06-21 03:48:12 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ElementsProject/lightning";
|
2018-06-21 03:48:12 +01:00
|
|
|
maintainers = with maintainers; [ jb55 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|