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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
936 B
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2017-12-20 18:51:46 +01:00
, boost, libbitcoin, secp256k1, zeromq }:
stdenv.mkDerivation rec {
2017-12-20 18:51:46 +01:00
pname = "libbitcoin-protocol";
version = "3.8.0";
2017-12-20 18:51:46 +01:00
src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
hash = "sha256-xf0qQQnZ8h6ent1sgkVTo55+9drZM8Zbx0deYZnLBho=";
2017-12-20 18:51:46 +01:00
};
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2017-12-20 18:51:46 +01:00
buildInputs = [ libbitcoin secp256k1 ];
propagatedBuildInputs = [ zeromq ];
enableParallelBuilding = true;
configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];
meta = with lib; {
2017-12-20 18:51:46 +01:00
description = "Bitcoin Blockchain Query Protocol";
2021-12-28 19:10:22 +01:00
homepage = "https://libbitcoin.info/";
2017-12-20 18:51:46 +01:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ asymmetric ];
# AGPL with a lesser clause
license = licenses.agpl3;
};
}