From 1d278febd0530e6c76bda471ff26b10ea0a8dfd0 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Mon, 2 Jan 2017 14:13:33 -0500 Subject: [PATCH] libbitcoin-explorer: init at 2.2.0 --- .../misc/libbitcoin/libbitcoin-explorer.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix b/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix new file mode 100644 index 000000000000..fbfa385fc7fc --- /dev/null +++ b/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix @@ -0,0 +1,36 @@ +{ stdenv, lib, fetchurl, pkgconfig, autoreconfHook +, boost, libbitcoin-client }: + +let + pname = "libbitcoin-explorer"; + version = "2.2.0"; + +in stdenv.mkDerivation { + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://github.com/libbitcoin/libbitcoin-explorer/archive/v${version}.tar.gz"; + sha256 = "00123vw7rxk0ypdfzk0xwk8q55ll31000mkjqdzl915krsbkbfvp"; + }; + + buildInputs = [ autoreconfHook pkgconfig ]; + + propagatedBuildInputs = [ libbitcoin-client ]; + + configureFlags = [ + "--with-boost=${boost.dev}" + "--with-boost-libdir=${boost.out}/lib" + "--with-bash-completiondir=$out/share/bash-completion/completions" + ]; + + meta = with stdenv.lib; { + description = "Bitcoin command line tool"; + homepage = https://github.com/libbitcoin/libbitcoin-explorer; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd8fa82fbb9c..f33f1281a537 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12327,6 +12327,8 @@ in libbitcoin-client = callPackage ../tools/misc/libbitcoin/libbitcoin-client.nix { }; + libbitcoin-explorer = callPackage ../tools/misc/libbitcoin/libbitcoin-explorer.nix { }; + go-ethereum = self.altcoins.go-ethereum; ethabi = self.altcoins.ethabi;