File tree Expand file tree Collapse file tree 1 file changed +47
-30
lines changed
pkgs/by-name/na/namecoind Expand file tree Collapse file tree 1 file changed +47
-30
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 stdenv ,
44 fetchFromGitHub ,
5- fetchpatch2 ,
6- openssl ,
5+ python3 ,
76 boost ,
87 libevent ,
98 autoreconfHook ,
109 db4 ,
1110 miniupnpc ,
12- eject ,
11+ sqlite ,
1312 pkg-config ,
13+ util-linux ,
1414 hexdump ,
15+ zeromq ,
16+ zlib ,
17+ darwin ,
18+ withWallet ? true ,
1519} :
1620
1721stdenv . mkDerivation rec {
1822 pname = "namecoind" ;
19- version = "25 .0" ;
23+ version = "28 .0" ;
2024
2125 src = fetchFromGitHub {
2226 owner = "namecoin" ;
2327 repo = "namecoin-core" ;
24- rev = "nc${ version } " ;
25- sha256 = "sha256-2KMK5Vb8osuaKbzI1aaPSYg+te+v9CEcGUkrVI6Fk54 =" ;
28+ tag = "nc${ version } " ;
29+ hash = "sha256-r6rVgPrKz7nZ07oXw7KmVhGF4jVn6L+R9YHded+3E9k =" ;
2630 } ;
2731
28- patches = [
29- # upnp: add compatibility for miniupnpc 2.2.8
30- ( fetchpatch2 {
31- url = "https://github.com/namecoin/namecoin-core/commit/8acdf66540834b9f9cf28f16d389e8b6a48516d5.patch?full_index=1" ;
32- hash = "sha256-oDvHUvwAEp0LJCf6QBESn38Bu359TcPpLhvuLX3sm6M=" ;
33- } )
34- ] ;
32+ nativeBuildInputs =
33+ [
34+ autoreconfHook
35+ pkg-config
36+ ]
37+ ++ lib . optionals stdenv . hostPlatform . isLinux [ util-linux ]
38+ ++ lib . optionals stdenv . hostPlatform . isDarwin [ hexdump ]
39+ ++ lib . optionals ( stdenv . hostPlatform . isDarwin && stdenv . hostPlatform . isAarch64 ) [
40+ darwin . autoSignDarwinBinariesHook
41+ ] ;
3542
36- nativeBuildInputs = [
37- autoreconfHook
38- pkg-config
39- hexdump
40- ] ;
41-
42- buildInputs = [
43- openssl
44- boost
45- libevent
46- db4
47- miniupnpc
48- eject
49- ] ;
43+ buildInputs =
44+ [
45+ boost
46+ libevent
47+ db4
48+ miniupnpc
49+ zeromq
50+ zlib
51+ ]
52+ ++ lib . optionals withWallet [ sqlite ]
53+ # building with db48 (for legacy descriptor wallet support) is broken on Darwin
54+ ++ lib . optionals ( withWallet && ! stdenv . hostPlatform . isDarwin ) [ db4 ] ;
5055
5156 enableParallelBuilding = true ;
5257
53- configureFlags = [
54- "--with-boost-libdir=${ boost . out } /lib"
55- ] ;
58+ configureFlags =
59+ [
60+ "--with-boost-libdir=${ boost . out } /lib"
61+ "--disable-bench"
62+ "--disable-gui-tests"
63+ ]
64+ ++ lib . optionals ( ! withWallet ) [
65+ "--disable-wallet"
66+ ] ;
67+
68+ nativeCheckInputs = [ python3 ] ;
69+
70+ doCheck = true ;
71+
72+ checkFlags = [ "LC_ALL=en_US.UTF-8" ] ;
5673
5774 meta = with lib ; {
5875 description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency" ;
You can’t perform that action at this time.
0 commit comments