tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
blockchains.bitcoin-abc: cleanup, format
Sandro Jäckel
4 years ago
9f6f2ea7
a293e463
+39
-13
1 changed file
expand all
collapse all
unified
split
pkgs
applications
blockchains
bitcoin-abc.nix
+39
-13
pkgs/applications/blockchains/bitcoin-abc.nix
reviewed
···
1
1
-
{ lib, stdenv, mkDerivation, fetchFromGitHub, pkg-config, cmake, openssl, db53, boost
2
2
-
, zlib, miniupnpc, qtbase ? null , qttools ? null, util-linux, protobuf, qrencode, libevent
3
3
-
, withGui, python3, jemalloc, zeromq4 }:
4
4
-
5
5
-
with lib;
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, mkDerivation
4
4
+
, fetchFromGitHub
5
5
+
, pkg-config
6
6
+
, cmake
7
7
+
, openssl
8
8
+
, db53
9
9
+
, boost
10
10
+
, zlib
11
11
+
, miniupnpc
12
12
+
, qtbase ? null
13
13
+
, qttools ? null
14
14
+
, util-linux
15
15
+
, protobuf
16
16
+
, qrencode
17
17
+
, libevent
18
18
+
, withGui
19
19
+
, python3
20
20
+
, jemalloc
21
21
+
, zeromq4
22
22
+
}:
6
23
7
24
mkDerivation rec {
8
8
-
9
9
-
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-abc-" + version;
25
25
+
pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-abc";
10
26
version = "0.21.13";
11
27
12
28
src = fetchFromGitHub {
···
19
35
patches = [ ./fix-bitcoin-qt-build.patch ];
20
36
21
37
nativeBuildInputs = [ pkg-config cmake ];
22
22
-
buildInputs = [ openssl db53 boost zlib python3 jemalloc zeromq4
23
23
-
miniupnpc util-linux protobuf libevent ]
24
24
-
++ optionals withGui [ qtbase qttools qrencode ];
38
38
+
buildInputs = [
39
39
+
openssl
40
40
+
db53
41
41
+
boost
42
42
+
zlib
43
43
+
python3
44
44
+
jemalloc
45
45
+
zeromq4
46
46
+
miniupnpc
47
47
+
util-linux
48
48
+
protobuf
49
49
+
libevent
50
50
+
] ++ lib.optionals withGui [ qtbase qttools qrencode ];
25
51
26
26
-
cmakeFlags = optionals (!withGui) [
52
52
+
cmakeFlags = lib.optionals (!withGui) [
27
53
"-DBUILD_BITCOIN_QT=OFF"
28
54
];
29
55
···
32
58
find ./. -type f -iname "*.sh" -exec chmod +x {} \;
33
59
'';
34
60
35
35
-
meta = {
61
61
+
meta = with lib; {
36
62
description = "Peer-to-peer electronic cash system (Cash client)";
37
37
-
longDescription= ''
63
63
+
longDescription = ''
38
64
Bitcoin ABC is the name of open source software which enables the use of Bitcoin.
39
65
It is designed to facilite a hard fork to increase Bitcoin's block size limit.
40
66
"ABC" stands for "Adjustable Blocksize Cap".