1 { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2 , boost, libbitcoin, libbitcoin-protocol }:
4 stdenv.mkDerivation rec {
5 pname = "libbitcoin-client";
8 src = fetchFromGitHub {
12 hash = "sha256-5qbxixaozHFsOcBxnuGEfNJyGL8UaYCOPwPakfc0bAg=";
15 nativeBuildInputs = [ autoreconfHook pkg-config ];
16 propagatedBuildInputs = [ libbitcoin libbitcoin-protocol ];
18 enableParallelBuilding = true;
22 "--with-boost=${boost.dev}"
23 "--with-boost-libdir=${boost.out}/lib"
27 description = "Bitcoin client query library";
28 homepage = "https://github.com/libbitcoin/libbitcoin-client";
29 platforms = platforms.linux ++ platforms.darwin;
32 # AGPL with a lesser clause
33 license = licenses.agpl3Plus;