2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
2017-12-20 23:22:15 +00:00
|
|
|
, boost, libbitcoin, libbitcoin-protocol }:
|
2017-01-02 19:13:09 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "libbitcoin-client";
|
2018-03-17 03:04:26 +00:00
|
|
|
version = "3.5.0";
|
2017-01-02 19:13:09 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2017-12-20 23:22:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libbitcoin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2018-03-17 03:04:26 +00:00
|
|
|
sha256 = "0a9c00f1pfi8wczbfd1djkvr7di3iw1ynak6if910w01dkhbm6v4";
|
2017-01-02 19:13:09 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-12-20 23:22:15 +00:00
|
|
|
propagatedBuildInputs = [ libbitcoin libbitcoin-protocol ];
|
2017-01-02 19:13:09 +00:00
|
|
|
|
2017-12-20 23:22:15 +00:00
|
|
|
enableParallelBuilding = true;
|
2017-01-02 19:13:09 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2017-12-20 23:22:15 +00:00
|
|
|
"--with-tests=no"
|
2017-01-02 19:13:09 +00:00
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-02 19:13:09 +00:00
|
|
|
description = "Bitcoin client query library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/libbitcoin/libbitcoin-client";
|
2017-01-02 19:13:09 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
|
|
|
2017-12-20 23:22:15 +00:00
|
|
|
# AGPL with a lesser clause
|
2017-01-02 19:13:09 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
};
|
|
|
|
}
|