summary refs log tree commit diff
path: root/pkgs/applications/altcoins/clightning.nix
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-06-20 19:48:12 -0700
committerWilliam Casarin <jb55@jb55.com>2018-06-25 11:56:09 -0700
commit5d99d322e94d3a8f728413013a36bb43197262a3 (patch)
tree946df6212f8cbff6c89b4d39cca6ff9c0cf71642 /pkgs/applications/altcoins/clightning.nix
parentb0b76bf75a7661221ee80e90af6c5bd7fe086101 (diff)
downloadnixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.tar
nixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.tar.gz
nixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.tar.bz2
nixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.tar.lz
nixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.tar.xz
nixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.tar.zst
nixpkgs-5d99d322e94d3a8f728413013a36bb43197262a3.zip
clightning: init at 0.6
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.
Diffstat (limited to 'pkgs/applications/altcoins/clightning.nix')
-rw-r--r--pkgs/applications/altcoins/clightning.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/clightning.nix b/pkgs/applications/altcoins/clightning.nix
new file mode 100644
index 00000000000..73cdd3664ea
--- /dev/null
+++ b/pkgs/applications/altcoins/clightning.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchpatch, python3, pkgconfig, which, libtool, autoconf, automake,
+  autogen, git, sqlite, gmp, zlib, fetchFromGitHub }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec {
+  name = "clightning-${version}";
+  version = "0.6";
+
+  src = fetchFromGitHub {
+    fetchSubmodules = true;
+    owner = "ElementsProject";
+    repo = "lightning";
+    rev = "v${version}";
+    sha256 = "1xbi8c7kn21wj255fxnb9s0sqnzbn3wsz4p96z084k8mw1nc71vn";
+  };
+
+  enableParallelBuilding = true;
+
+  buildInputs = [ which sqlite gmp zlib autoconf libtool automake autogen python3 pkgconfig ];
+
+  makeFlags = [ "prefix=$(out)" ];
+
+  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;
+  };
+}