mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{ stdenv, python3, pkgconfig, which, libtool, autoconf, automake,
|
|
autogen, sqlite, gmp, zlib, fetchurl, unzip, fetchpatch, gettext }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
pname = "clightning";
|
|
version = "0.7.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip";
|
|
sha256 = "ef2193940146d1b8ff0cc03602842c4d81db9ca6a5e73927e4f8932715e931a4";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ autoconf autogen automake libtool pkgconfig which unzip gettext ];
|
|
buildInputs =
|
|
let py3 = python3.withPackages (p: [ p.Mako ]);
|
|
in [ sqlite gmp zlib py3 ];
|
|
|
|
makeFlags = [ "prefix=$(out) VERSION=v${version}" ];
|
|
|
|
configurePhase = ''
|
|
./configure --prefix=$out --disable-developer --disable-valgrind
|
|
'';
|
|
|
|
postPatch = ''
|
|
patchShebangs \
|
|
tools/generate-wire.py \
|
|
tools/update-mocks.sh \
|
|
tools/mockup.sh \
|
|
devtools/sql-rewrite.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;
|
|
};
|
|
}
|