summary refs log tree commit diff
diff options
context:
space:
mode:
authorWei Tang <hi@that.world>2017-08-26 00:52:31 +0800
committerWei Tang <hi@that.world>2017-08-26 01:05:46 +0800
commitaabdd37cb91301fe882fa729117e8ab3af86a869 (patch)
tree0040eb034d341c29caeb1d07c92c2a3955c55ba7
parent58c0d63100244211f5a898d5c26a76aca038698c (diff)
downloadnixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.tar
nixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.tar.gz
nixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.tar.bz2
nixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.tar.lz
nixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.tar.xz
nixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.tar.zst
nixpkgs-aabdd37cb91301fe882fa729117e8ab3af86a869.zip
btc1: init at 1.14.5
A portion of Bitcoin users (including the super-majority of the
miners) decided to hard fork to segwit2x around this November. At that
time this will not be compatible with the Bitcoin Core client. 1.14.5
is known as "the Production Release".
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/applications/altcoins/btc1.nix40
-rw-r--r--pkgs/applications/altcoins/default.nix3
3 files changed, 44 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index 7728749f054..0eeb7ed66a0 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -545,6 +545,7 @@
   smironov = "Sergey Mironov <grrwlf@gmail.com>";
   snyh = "Xia Bin <snyh@snyh.org>";
   solson = "Scott Olson <scott@solson.me>";
+  sorpaas = "Wei Tang <hi@that.world>";
   spacefrogg = "Michael Raitza <spacefrogg-nixos@meterriblecrew.net>";
   spencerjanssen = "Spencer Janssen <spencerjanssen@gmail.com>";
   spinus = "Tomasz Czyż <tomasz.czyz@gmail.com>";
diff --git a/pkgs/applications/altcoins/btc1.nix b/pkgs/applications/altcoins/btc1.nix
new file mode 100644
index 00000000000..8ade6fb5251
--- /dev/null
+++ b/pkgs/applications/altcoins/btc1.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost
+, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
+, withGui }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec{
+  name = "bit1" + (toString (optional (!withGui) "d")) + "-" + version;
+  version = "1.14.5";
+
+  src = fetchurl {
+    url = "https://github.com/btc1/bitcoin/archive/v${version}.tar.gz";
+    sha256 = "1az6bbblh3adgcs16r9cjz8jacg6sbwfpg8zzfzkbp9h9j85ass5";
+  };
+
+  nativeBuildInputs = [ pkgconfig autoreconfHook ];
+  buildInputs = [ openssl db48 boost zlib
+                  miniupnpc protobuf libevent]
+                  ++ optionals stdenv.isLinux [ utillinux ]
+                  ++ optionals withGui [ qt4 qrencode ];
+
+  configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
+                     ++ optionals withGui [ "--with-gui=qt4" ];
+
+  meta = {
+    description = "Peer-to-peer electronic cash system (btc1 client)";
+    longDescription= ''
+      Bitcoin is a free open source peer-to-peer electronic cash system that is
+      completely decentralized, without the need for a central server or trusted
+      parties. Users hold the crypto keys to their own money and transact directly
+      with each other, with the help of a P2P network to check for double-spending.
+
+      btc1 is an implementation of a Bitcoin full node with segwit2x hard fork
+      support.
+    '';
+    homepage = "https://github.com/btc1/bitcoin";
+    license = licenses.mit;
+    maintainers = with maintainers; [ sorpaas ];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix
index 1fbabc338f2..81b459e8308 100644
--- a/pkgs/applications/altcoins/default.nix
+++ b/pkgs/applications/altcoins/default.nix
@@ -14,6 +14,9 @@ rec {
   bitcoin-xt  = callPackage ./bitcoin-xt.nix { withGui = true; };
   bitcoind-xt = callPackage ./bitcoin-xt.nix { withGui = false; };
 
+  btc1 = callPackage ./btc1.nix { withGui = true; };
+  btc1d = callPackage ./btc1.nix { withGui = false; };
+
   dashpay = callPackage ./dashpay.nix { };
 
   dogecoin  = callPackage ./dogecoin.nix { withGui = true; };