tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
blockchains: format, cleanup
Sandro Jäckel
4 years ago
abce989b
9f6f2ea7
+35
-15
1 changed file
expand all
collapse all
unified
split
pkgs
applications
blockchains
bitcoin-classic.nix
+35
-15
pkgs/applications/blockchains/bitcoin-classic.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, openssl, db48, boost
2
2
-
, zlib, miniupnpc, qtbase ? null, qttools ? null, util-linux, protobuf, qrencode, libevent
3
3
-
, withGui }:
4
4
-
5
5
-
with lib;
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, pkg-config
5
5
+
, autoreconfHook
6
6
+
, openssl
7
7
+
, db48
8
8
+
, boost
9
9
+
, zlib
10
10
+
, miniupnpc
11
11
+
, qtbase ? null
12
12
+
, qttools ? null
13
13
+
, util-linux
14
14
+
, protobuf
15
15
+
, qrencode
16
16
+
, libevent
17
17
+
, withGui
18
18
+
}:
6
19
7
20
stdenv.mkDerivation rec {
8
8
-
9
9
-
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
21
21
+
pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-classic";
10
22
version = "1.3.8uahf";
11
23
12
24
src = fetchFromGitHub {
···
17
29
};
18
30
19
31
nativeBuildInputs = [ pkg-config autoreconfHook ];
20
20
-
buildInputs = [ openssl db48 boost zlib
21
21
-
miniupnpc util-linux protobuf libevent ]
22
22
-
++ optionals withGui [ qtbase qttools qrencode ];
32
32
+
buildInputs = [
33
33
+
openssl
34
34
+
db48
35
35
+
boost
36
36
+
zlib
37
37
+
miniupnpc
38
38
+
util-linux
39
39
+
protobuf
40
40
+
libevent
41
41
+
] ++ lib.optionals withGui [ qtbase qttools qrencode ];
23
42
24
43
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
25
25
-
++ optionals withGui [ "--with-gui=qt5"
26
26
-
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
27
27
-
];
44
44
+
++ lib.optionals withGui [
45
45
+
"--with-gui=qt5"
46
46
+
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
47
47
+
];
28
48
29
49
enableParallelBuilding = true;
30
50
31
51
dontWrapQtApps = true;
32
52
33
33
-
meta = {
53
53
+
meta = with lib; {
34
54
description = "Peer-to-peer electronic cash system (Classic client)";
35
35
-
longDescription= ''
55
55
+
longDescription = ''
36
56
Bitcoin is a free open source peer-to-peer electronic cash system that is
37
57
completely decentralized, without the need for a central server or trusted
38
58
parties. Users hold the crypto keys to their own money and transact directly