2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
|
2017-12-20 17:41:31 +01:00
|
|
|
, boost, secp256k1 }:
|
2017-01-02 20:12:37 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "libbitcoin";
|
2019-08-19 18:13:24 +02:00
|
|
|
version = "3.6.0";
|
2017-01-02 20:12:37 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2017-12-20 17:41:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-08-19 18:13:24 +02:00
|
|
|
sha256 = "1rppyp3zpb6ymwangjpblwf6qh4y3d1hczrjx8aavmrq7hznnrhq";
|
2017-01-02 20:12:37 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2017-01-02 20:12:37 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ secp256k1 ];
|
|
|
|
|
2017-12-20 17:41:31 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-02 20:12:37 +01:00
|
|
|
configureFlags = [
|
2017-12-20 17:41:31 +01:00
|
|
|
"--with-tests=no"
|
2017-01-02 20:12:37 +01:00
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-01-02 20:12:37 +01:00
|
|
|
description = "C++ library for building bitcoin applications";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://libbitcoin.org/";
|
2017-01-02 20:12:37 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ chris-martin ];
|
|
|
|
|
2017-12-20 17:41:31 +01:00
|
|
|
# AGPL with a lesser clause
|
2017-01-02 20:12:37 +01:00
|
|
|
license = licenses.agpl3;
|
|
|
|
};
|
|
|
|
}
|