From 1f896f4bdd5aa951c37c79f00cec5da057c331a6 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Mon, 2 Jan 2017 14:12:37 -0500 Subject: libbitcoin: init at 2.11.0 --- pkgs/tools/misc/libbitcoin/libbitcoin.nix | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/tools/misc/libbitcoin/libbitcoin.nix (limited to 'pkgs/tools/misc/libbitcoin') diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin.nix b/pkgs/tools/misc/libbitcoin/libbitcoin.nix new file mode 100644 index 00000000000..61c462f7853 --- /dev/null +++ b/pkgs/tools/misc/libbitcoin/libbitcoin.nix @@ -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; + }; +} -- cgit 1.4.1