2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
2017-12-20 16:41:31 +00:00
|
|
|
, boost, secp256k1 }:
|
2017-01-02 19:12:37 +00:00
|
|
|
|
2022-12-16 00:54:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-01-02 19:12:37 +00:00
|
|
|
pname = "libbitcoin";
|
2019-08-19 16:13:24 +00:00
|
|
|
version = "3.6.0";
|
2017-01-02 19:12:37 +00:00
|
|
|
|
2017-12-20 16:41:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-08-19 16:13:24 +00:00
|
|
|
sha256 = "1rppyp3zpb6ymwangjpblwf6qh4y3d1hczrjx8aavmrq7hznnrhq";
|
2017-01-02 19:12:37 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-01-02 19:12:37 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ secp256k1 ];
|
|
|
|
|
2017-12-20 16:41:31 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-05-21 17:11:35 +00:00
|
|
|
patches = [ ./fix-gcc11-compilation.patch ];
|
|
|
|
|
2017-01-02 19:12:37 +00:00
|
|
|
configureFlags = [
|
2017-12-20 16:41:31 +00:00
|
|
|
"--with-tests=no"
|
2017-01-02 19:12:37 +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:12:37 +00:00
|
|
|
description = "C++ library for building bitcoin applications";
|
2021-12-28 18:10:22 +00:00
|
|
|
homepage = "https://libbitcoin.info/";
|
2017-01-02 19:12:37 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2021-06-06 08:37:32 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-12-20 16:41:31 +00:00
|
|
|
# AGPL with a lesser clause
|
2017-01-02 19:12:37 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
};
|
|
|
|
}
|