lol
1{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2, boost, libbitcoin, zeromq }:
3
4let
5 pname = "libbitcoin-network";
6 version = "3.5.0";
7
8in stdenv.mkDerivation {
9 name = "${pname}-${version}";
10
11 src = fetchFromGitHub {
12 owner = "libbitcoin";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "0vqg3i40kwmbys4lyp82xvg2nx3ik4qhc66gcm8k66a86wpj9ji6";
16 };
17
18 nativeBuildInputs = [ autoreconfHook pkg-config ];
19 buildInputs = [ libbitcoin zeromq ];
20
21 enableParallelBuilding = true;
22
23 configureFlags = [
24 "--with-tests=no"
25 "--with-boost=${boost.dev}"
26 "--with-boost-libdir=${boost.out}/lib"
27 ];
28
29 meta = with lib; {
30 description = "Bitcoin P2P Network Library";
31 homepage = "https://libbitcoin.info/";
32 platforms = platforms.linux ++ platforms.darwin;
33 maintainers = with maintainers; [ asymmetric ];
34
35 # AGPL with a lesser clause
36 license = licenses.agpl3;
37 };
38}