nixpkgs-suyu/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix

40 lines
1 KiB
Nix
Raw Normal View History

2017-12-21 01:25:42 +01:00
{ stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook
, boost, libbitcoin-client, libbitcoin-network }:
2017-01-02 20:13:33 +01:00
let
pname = "libbitcoin-explorer";
2017-12-21 01:25:42 +01:00
version = "3.4.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}";
sha256 = "0rxiimklzqyp9vswznz9aia71dn6jxm2pxx5ljlhzs5rs583cj00";
2017-01-02 20:13:33 +01:00
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
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"
];
meta = with stdenv.lib; {
description = "Bitcoin command line tool";
homepage = https://github.com/libbitcoin/libbitcoin-explorer;
platforms = platforms.linux ++ platforms.darwin;
2017-12-21 01:25:42 +01:00
maintainers = with maintainers; [ chris-martin 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;
};
}