From 06a2b9fa9522fb9b52f5dc569a44a3c99f6a6838 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Tue, 27 Jul 2021 15:31:23 +0200 Subject: pkgs/applications/blockchains: move packages into subdirs --- .../blockchains/clightning/default.nix | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/applications/blockchains/clightning/default.nix (limited to 'pkgs/applications/blockchains/clightning') diff --git a/pkgs/applications/blockchains/clightning/default.nix b/pkgs/applications/blockchains/clightning/default.nix new file mode 100644 index 0000000000000..44ed4d1541c09 --- /dev/null +++ b/pkgs/applications/blockchains/clightning/default.nix @@ -0,0 +1,63 @@ +{ lib +, stdenv +, fetchurl +, autoconf +, automake +, autogen +, gettext +, libtool +, pkg-config +, unzip +, which +, gmp +, libsodium +, python3 +, sqlite +, zlib +}: +let + py3 = python3.withPackages (p: [ p.Mako ]); +in +stdenv.mkDerivation rec { + pname = "clightning"; + version = "0.10.0"; + + src = fetchurl { + url = "https://github.com/ElementsProject/lightning/releases/download/v${version}/clightning-v${version}.zip"; + sha256 = "5154e67780dddbf12f64c4b1994c3ee3834236f05b6462adf25e8a5f3fa407ea"; + }; + + nativeBuildInputs = [ autogen autoconf automake gettext libtool pkg-config py3 unzip which ]; + + buildInputs = [ gmp libsodium sqlite zlib ]; + + postPatch = '' + patchShebangs \ + tools/generate-wire.py \ + tools/update-mocks.sh \ + tools/mockup.sh \ + devtools/sql-rewrite.py + ''; + + configurePhase = '' + ./configure --prefix=$out --disable-developer --disable-valgrind + ''; + + makeFlags = [ "prefix=$(out) VERSION=v${version}" ]; + + enableParallelBuilding = true; + + meta = with lib; { + 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 prusnak ]; + license = licenses.mit; + platforms = platforms.linux; + }; +} -- cgit 1.4.1