libbitcoin-client: 2.2.0 -> 3.4.0

This commit is contained in:
Lorenzo Manacorda 2017-12-21 00:22:15 +01:00
parent 4fea55ef33
commit 86ee454f4d

View File

@ -1,27 +1,29 @@
{ stdenv, lib, fetchurl, pkgconfig, autoreconfHook { stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook
, boost, libsodium, czmqpp, libbitcoin }: , boost, libbitcoin, libbitcoin-protocol }:
let let
pname = "libbitcoin-client"; pname = "libbitcoin-client";
version = "2.2.0"; version = "3.4.0";
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/libbitcoin/libbitcoin-client/archive/v${version}.tar.gz"; owner = "libbitcoin";
sha256 = "1g79hl6jmf5dam7vq19h4dgdj7gcn19fa7q78vn573mg2rdyal53"; repo = pname;
rev = "v${version}";
sha256 = "1vdp6qgpxshh6nhdvr81z3nvh42wgmsm4prli4ajigwp970y8p56";
}; };
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ]; propagatedBuildInputs = [ libbitcoin libbitcoin-protocol ];
propagatedBuildInputs = [ libsodium czmqpp libbitcoin ]; enableParallelBuilding = true;
configureFlags = [ configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}" "--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib" "--with-boost-libdir=${boost.out}/lib"
"--with-bash-completiondir=$out/share/bash-completion/completions"
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
@ -30,8 +32,7 @@ in stdenv.mkDerivation {
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ]; maintainers = with maintainers; [ chris-martin ];
# https://wiki.unsystem.net/en/index.php/Libbitcoin/License # AGPL with a lesser clause
# AGPL with an additional clause
license = licenses.agpl3; license = licenses.agpl3;
}; };
} }