diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-08-31 09:50:38 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-08-31 09:50:38 +0200 |
commit | fc74ba8291a8a93cba428de6bc2e7c8c7f9330f4 (patch) | |
tree | 982675c7719f2060a550e80747dfa49c1a9d6b06 /pkgs/applications/blockchains/clightning.nix | |
parent | 98640fd48212f8e6552517f667bba1901f5936d4 (diff) | |
parent | 81760f32353fa7f309a49fda17d90f43ac1e9a42 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/blockchains/clightning.nix')
-rw-r--r-- | pkgs/applications/blockchains/clightning.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/clightning.nix b/pkgs/applications/blockchains/clightning.nix new file mode 100644 index 0000000000000..a8846431f1efd --- /dev/null +++ b/pkgs/applications/blockchains/clightning.nix @@ -0,0 +1,44 @@ +{ stdenv, python3, pkgconfig, which, libtool, autoconf, automake, + autogen, sqlite, gmp, zlib, fetchurl, unzip, fetchpatch }: + +with stdenv.lib; +stdenv.mkDerivation rec { + pname = "clightning"; + version = "0.7.1"; + + src = fetchurl { + url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip"; + sha256 = "557be34410f27a8d55d9f31a40717a8f5e99829f2bd114c24e7ca1dd5f6b7d85"; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ autoconf autogen automake libtool pkgconfig which unzip ]; + buildInputs = [ sqlite gmp zlib python3 ]; + + makeFlags = [ "prefix=$(out) VERSION=v${version}" ]; + + 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; + }; +} |