summary refs log tree commit diff
path: root/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix
blob: fbfa385fc7fccfdc1b315817c5c4d17367f62a14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, lib, fetchurl, pkgconfig, autoreconfHook
, boost, libbitcoin-client }:

let
  pname = "libbitcoin-explorer";
  version = "2.2.0";

in stdenv.mkDerivation {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "https://github.com/libbitcoin/libbitcoin-explorer/archive/v${version}.tar.gz";
    sha256 = "00123vw7rxk0ypdfzk0xwk8q55ll31000mkjqdzl915krsbkbfvp";
  };

  buildInputs = [ autoreconfHook pkgconfig ];

  propagatedBuildInputs = [ libbitcoin-client ];

  configureFlags = [
    "--with-boost=${boost.dev}"
    "--with-boost-libdir=${boost.out}/lib"
    "--with-bash-completiondir=$out/share/bash-completion/completions"
  ];

  meta = with stdenv.lib; {
    description = "Bitcoin command line tool";
    homepage = https://github.com/libbitcoin/libbitcoin-explorer;
    platforms = platforms.linux ++ platforms.darwin;
    maintainers = with maintainers; [ chris-martin ];

    # https://wiki.unsystem.net/en/index.php/Libbitcoin/License
    # AGPL with an additional clause
    license = licenses.agpl3;
  };
}