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

39 lines
980 B
Nix
Raw Normal View History

2017-12-21 00:22:15 +01:00
{ stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook
, boost, libbitcoin, libbitcoin-protocol }:
2017-01-02 20:13:09 +01:00
let
pname = "libbitcoin-client";
2017-12-21 00:22:15 +01:00
version = "3.4.0";
2017-01-02 20:13:09 +01:00
in stdenv.mkDerivation {
name = "${pname}-${version}";
2017-12-21 00:22:15 +01:00
src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
sha256 = "1vdp6qgpxshh6nhdvr81z3nvh42wgmsm4prli4ajigwp970y8p56";
2017-01-02 20:13:09 +01:00
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
2017-12-21 00:22:15 +01:00
propagatedBuildInputs = [ libbitcoin libbitcoin-protocol ];
2017-01-02 20:13:09 +01:00
2017-12-21 00:22:15 +01:00
enableParallelBuilding = true;
2017-01-02 20:13:09 +01:00
configureFlags = [
2017-12-21 00:22:15 +01:00
"--with-tests=no"
2017-01-02 20:13:09 +01:00
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];
meta = with stdenv.lib; {
description = "Bitcoin client query library";
homepage = https://github.com/libbitcoin/libbitcoin-client;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ];
2017-12-21 00:22:15 +01:00
# AGPL with a lesser clause
2017-01-02 20:13:09 +01:00
license = licenses.agpl3;
};
}