libbitcoin: init at 2.11.0
This commit is contained in:
parent
59dbcefaa7
commit
1f896f4bdd
35
pkgs/tools/misc/libbitcoin/libbitcoin.nix
Normal file
35
pkgs/tools/misc/libbitcoin/libbitcoin.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, lib, fetchurl, pkgconfig, autoreconfHook
|
||||||
|
, boost, libsodium, czmqpp, secp256k1 }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "libbitcoin";
|
||||||
|
version = "2.11.0";
|
||||||
|
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/libbitcoin/libbitcoin/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "1lpdjm13kgs4fbp579bwfvws8yf9mnr5dw3ph8zxg2gf110h85sy";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ secp256k1 ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--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 ];
|
||||||
|
|
||||||
|
# https://wiki.unsystem.net/en/index.php/Libbitcoin/License
|
||||||
|
# AGPL with an additional clause
|
||||||
|
license = licenses.agpl3;
|
||||||
|
};
|
||||||
|
}
|
@ -12321,6 +12321,10 @@ in
|
|||||||
bitcoin = altcoins.bitcoin;
|
bitcoin = altcoins.bitcoin;
|
||||||
bitcoin-xt = altcoins.bitcoin-xt;
|
bitcoin-xt = altcoins.bitcoin-xt;
|
||||||
|
|
||||||
|
libbitcoin = callPackage ../tools/misc/libbitcoin/libbitcoin.nix {
|
||||||
|
secp256k1 = secp256k1.override { enableECDH = true; };
|
||||||
|
};
|
||||||
|
|
||||||
go-ethereum = self.altcoins.go-ethereum;
|
go-ethereum = self.altcoins.go-ethereum;
|
||||||
ethabi = self.altcoins.ethabi;
|
ethabi = self.altcoins.ethabi;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user