nixpkgs/pkgs/tools/misc/libbitcoin/libbitcoin.nix

40 lines
912 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
2017-12-20 19:41:31 +03:00
, boost, secp256k1 }:
2017-01-02 22:12:37 +03:00
let
pname = "libbitcoin";
version = "3.5.0";
2017-01-02 22:12:37 +03:00
in stdenv.mkDerivation {
name = "${pname}-${version}";
2017-12-20 19:41:31 +03:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1qy637hpv6kkhf602yxxi5b9j0qhsp644fazljcqbnxzp7vv2qyd";
2017-01-02 22:12:37 +03:00
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
2017-01-02 22:12:37 +03:00
propagatedBuildInputs = [ secp256k1 ];
2017-12-20 19:41:31 +03:00
enableParallelBuilding = true;
2017-01-02 22:12:37 +03:00
configureFlags = [
2017-12-20 19:41:31 +03:00
"--with-tests=no"
2017-01-02 22:12:37 +03:00
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];
meta = with stdenv.lib; {
description = "C++ library for building bitcoin applications";
homepage = https://libbitcoin.org/;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ];
2017-12-20 19:41:31 +03:00
# AGPL with a lesser clause
2017-01-02 22:12:37 +03:00
license = licenses.agpl3;
};
}