libbitcoin-explorer: 2.2.0 -> 3.4.0

This commit is contained in:
Lorenzo Manacorda 2017-12-21 01:25:42 +01:00
parent 23ca8e1287
commit abc3e4558d

View File

@ -1,24 +1,27 @@
{ stdenv, lib, fetchurl, pkgconfig, autoreconfHook { stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook
, boost, libbitcoin-client }: , boost, libbitcoin-client, libbitcoin-network }:
let let
pname = "libbitcoin-explorer"; pname = "libbitcoin-explorer";
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-explorer/archive/v${version}.tar.gz"; owner = "libbitcoin";
sha256 = "00123vw7rxk0ypdfzk0xwk8q55ll31000mkjqdzl915krsbkbfvp"; repo = pname;
rev = "v${version}";
sha256 = "0rxiimklzqyp9vswznz9aia71dn6jxm2pxx5ljlhzs5rs583cj00";
}; };
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ]; buildInputs = [ libbitcoin-client libbitcoin-network ];
propagatedBuildInputs = [ libbitcoin-client ]; 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" "--with-bash-completiondir=$out/share/bash-completion/completions"
@ -28,10 +31,9 @@ in stdenv.mkDerivation {
description = "Bitcoin command line tool"; description = "Bitcoin command line tool";
homepage = https://github.com/libbitcoin/libbitcoin-explorer; homepage = https://github.com/libbitcoin/libbitcoin-explorer;
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ]; maintainers = with maintainers; [ chris-martin asymmetric ];
# 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;
}; };
} }