2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
2017-12-21 00:25:42 +00:00
|
|
|
, boost, libbitcoin-client, libbitcoin-network }:
|
2017-01-02 19:13:33 +00:00
|
|
|
|
2023-12-08 22:56:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-01-02 19:13:33 +00:00
|
|
|
pname = "libbitcoin-explorer";
|
2023-12-08 22:56:33 +00:00
|
|
|
version = "3.8.0";
|
2017-01-02 19:13:33 +00:00
|
|
|
|
2017-12-21 00:25:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libbitcoin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-08 22:56:33 +00:00
|
|
|
hash = "sha256-NUAtjrfRbZg5ewQo4PZ1HEoG8GRrsPcNb78UYMHqdyo=";
|
2017-01-02 19:13:33 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-12-21 00:25:42 +00:00
|
|
|
buildInputs = [ libbitcoin-client libbitcoin-network ];
|
2017-01-02 19:13:33 +00:00
|
|
|
|
2017-12-21 00:25:42 +00:00
|
|
|
enableParallelBuilding = true;
|
2017-01-02 19:13:33 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2017-12-21 00:25:42 +00:00
|
|
|
"--with-tests=no"
|
2017-01-02 19:13:33 +00:00
|
|
|
"--with-boost=${boost.dev}"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
"--with-bash-completiondir=$out/share/bash-completion/completions"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-02 19:13:33 +00:00
|
|
|
description = "Bitcoin command line tool";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "bx";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/libbitcoin/libbitcoin-explorer";
|
2017-01-02 19:13:33 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2021-06-06 08:37:32 +00:00
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
2017-01-02 19:13:33 +00:00
|
|
|
|
2017-12-21 00:25:42 +00:00
|
|
|
# AGPL with a lesser clause
|
2024-03-19 12:26:06 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2017-01-02 19:13:33 +00:00
|
|
|
};
|
|
|
|
}
|