2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
2017-12-21 01:25:42 +01:00
|
|
|
, boost, libbitcoin-client, libbitcoin-network }:
|
2017-01-02 20:13:33 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "libbitcoin-explorer";
|
2018-03-17 04:39:31 +01:00
|
|
|
version = "3.5.0";
|
2017-01-02 20:13:33 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2017-12-21 01:25:42 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libbitcoin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2018-03-17 04:39:31 +01:00
|
|
|
sha256 = "033nrdzrha4kypxk4biixjsbjd16r4m2mjvpid4gdj5hzbbj1p93";
|
2017-01-02 20:13:33 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-12-21 01:25:42 +01:00
|
|
|
buildInputs = [ libbitcoin-client libbitcoin-network ];
|
2017-01-02 20:13:33 +01:00
|
|
|
|
2017-12-21 01:25:42 +01:00
|
|
|
enableParallelBuilding = true;
|
2017-01-02 20:13:33 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
2017-12-21 01:25:42 +01:00
|
|
|
"--with-tests=no"
|
2017-01-02 20:13:33 +01:00
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
"--with-bash-completiondir=$out/share/bash-completion/completions"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-01-02 20:13:33 +01:00
|
|
|
description = "Bitcoin command line tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/libbitcoin/libbitcoin-explorer";
|
2017-01-02 20:13:33 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2021-06-06 10:37:32 +02:00
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
2017-01-02 20:13:33 +01:00
|
|
|
|
2017-12-21 01:25:42 +01:00
|
|
|
# AGPL with a lesser clause
|
2017-01-02 20:13:33 +01:00
|
|
|
license = licenses.agpl3;
|
|
|
|
};
|
|
|
|
}
|