1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/tools/misc/libbitcoin/libbitcoin.nix

40 lines
917 B
Nix
Raw Normal View History

2017-12-20 11:41:31 -05:00
{ stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook
, boost, secp256k1 }:
2017-01-02 14:12:37 -05:00
let
pname = "libbitcoin";
2017-12-20 11:41:31 -05:00
version = "3.4.0";
2017-01-02 14:12:37 -05:00
in stdenv.mkDerivation {
name = "${pname}-${version}";
2017-12-20 11:41:31 -05:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1h6h7cxbwkdk8bzbkfvnrrdzajw1d4lr8wqs66is735bksh6gk1y";
2017-01-02 14:12:37 -05:00
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
2017-01-02 14:12:37 -05:00
propagatedBuildInputs = [ secp256k1 ];
2017-12-20 11:41:31 -05:00
enableParallelBuilding = true;
2017-01-02 14:12:37 -05:00
configureFlags = [
2017-12-20 11:41:31 -05:00
"--with-tests=no"
2017-01-02 14:12:37 -05: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 11:41:31 -05:00
# AGPL with a lesser clause
2017-01-02 14:12:37 -05:00
license = licenses.agpl3;
};
}