git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29858 from Lassulus/bitcoin-abc

bitcoin-abc: init at 0.15.0

commit589311fee07baa540b83a8e54600cee97a6a5f1b authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 28 Sep 2017, 00:23 (9 years ago) parentc6f513b589cff4
3 files changed+61
pkgs/applications/altcoins/bitcoin-abc.nix+43 pkgs/applications/altcoins/default.nix+3 pkgs/applications/altcoins/fix-bitcoin-qt-build.patch+15
pkgs/applications/altcoins/bitcoin-abc.nixnew file+43
@@ -0,0 +1,43 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
2+, zlib, miniupnpc, qt5, utillinux, protobuf, qrencode, libevent
3+, withGui }:
4+
5+with stdenv.lib;
6+
7+stdenv.mkDerivation rec {
8+
9+ name = "bitcoin" + (toString (optional (!withGui) "d")) + "-abc-" + version;
10+ version = "0.15.0";
11+
12+ src = fetchFromGitHub {
13+ owner = "bitcoin-ABC";
14+ repo = "bitcoin-abc";
15+ rev = "v${version}";
16+ sha256 = "1fygn6cc99iasg5g5jyps5ps873hfnn4ln4hsmcwlwiqd591qxyv";
17+ };
18+
19+ patches = [ ./fix-bitcoin-qt-build.patch ];
20+
21+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
22+ buildInputs = [ openssl db48 boost zlib
23+ miniupnpc utillinux protobuf libevent ]
24+ ++ optionals withGui [ qt5.qtbase qt5.qttools qrencode ];
25+
26+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
27+ ++ optionals withGui [ "--with-gui=qt5" ];
28+
29+ meta = {
30+ description = "Peer-to-peer electronic cash system (Cash client)";
31+ longDescription= ''
32+ Bitcoin ABC is the name of open source software which enables the use of Bitcoin.
33+ It is designed to facilite a hard fork to increase Bitcoin's block size limit.
34+ "ABC" stands for "Adjustable Blocksize Cap".
35+
36+ Bitcoin ABC is a fork of the Bitcoin Core software project.
37+ '';
38+ homepage = https://bitcoinabc.org/;
39+ maintainers = with maintainers; [ lassulus ];
40+ license = licenses.mit;
41+ platforms = platforms.unix;
42+ };
43+}
pkgs/applications/altcoins/default.nix+3
@@ -5,6 +5,9 @@ rec {
55 bitcoin = callPackage ./bitcoin.nix { withGui = true; };
66 bitcoind = callPackage ./bitcoin.nix { withGui = false; };
77
8+ bitcoin-abc = callPackage ./bitcoin-abc.nix { withGui = true; };
9+ bitcoind-abc = callPackage ./bitcoin-abc.nix { withGui = false; };
10+
811 bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = true; };
912 bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = false; };
1013
pkgs/applications/altcoins/fix-bitcoin-qt-build.patchnew file+15
@@ -0,0 +1,15 @@
1+--- bitcoin-abc-v0.15.0-src/build-aux/m4/bitcoin_qt.m4 1970-01-01 01:00:01.000000000 +0100
2++++ bitcoin-abc-v0.15.0-src.org/build-aux/m4/bitcoin_qt.m4 2017-09-27 23:38:44.748384197 +0100
3+@@ -35,11 +35,7 @@
4+ dnl Output: $1 is set to the path of $2 if found. $2 are searched in order.
5+ AC_DEFUN([BITCOIN_QT_PATH_PROGS],[
6+ BITCOIN_QT_CHECK([
7+- if test "x$3" != "x"; then
8+- AC_PATH_PROGS($1,$2,,$3)
9+- else
10+- AC_PATH_PROGS($1,$2)
11+- fi
12++ AC_PATH_PROGS($1,$2)
13+ if test "x$$1" = "x" && test "x$4" != "xyes"; then
14+ BITCOIN_QT_FAIL([$1 not found])
15+ fi