libbitcoin-client: 2.2.0 -> 3.4.0

+12 -11
+12 -11
pkgs/tools/misc/libbitcoin/libbitcoin-client.nix
··· 1 - { stdenv, lib, fetchurl, pkgconfig, autoreconfHook 2 - , boost, libsodium, czmqpp, libbitcoin }: 1 + { stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook 2 + , boost, libbitcoin, libbitcoin-protocol }: 3 3 4 4 let 5 5 pname = "libbitcoin-client"; 6 - version = "2.2.0"; 6 + version = "3.4.0"; 7 7 8 8 in stdenv.mkDerivation { 9 9 name = "${pname}-${version}"; 10 10 11 - src = fetchurl { 12 - url = "https://github.com/libbitcoin/libbitcoin-client/archive/v${version}.tar.gz"; 13 - sha256 = "1g79hl6jmf5dam7vq19h4dgdj7gcn19fa7q78vn573mg2rdyal53"; 11 + src = fetchFromGitHub { 12 + owner = "libbitcoin"; 13 + repo = pname; 14 + rev = "v${version}"; 15 + sha256 = "1vdp6qgpxshh6nhdvr81z3nvh42wgmsm4prli4ajigwp970y8p56"; 14 16 }; 15 17 16 18 nativeBuildInputs = [ autoreconfHook pkgconfig ]; 17 - buildInputs = [ ]; 19 + propagatedBuildInputs = [ libbitcoin libbitcoin-protocol ]; 18 20 19 - propagatedBuildInputs = [ libsodium czmqpp libbitcoin ]; 21 + enableParallelBuilding = true; 20 22 21 23 configureFlags = [ 24 + "--with-tests=no" 22 25 "--with-boost=${boost.dev}" 23 26 "--with-boost-libdir=${boost.out}/lib" 24 - "--with-bash-completiondir=$out/share/bash-completion/completions" 25 27 ]; 26 28 27 29 meta = with stdenv.lib; { ··· 30 32 platforms = platforms.linux ++ platforms.darwin; 31 33 maintainers = with maintainers; [ chris-martin ]; 32 34 33 - # https://wiki.unsystem.net/en/index.php/Libbitcoin/License 34 - # AGPL with an additional clause 35 + # AGPL with a lesser clause 35 36 license = licenses.agpl3; 36 37 }; 37 38 }