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

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

40 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2017-12-21 00:25:42 +00:00
, boost, libbitcoin-client, libbitcoin-network }:
2017-01-02 19:13:33 +00:00
let
pname = "libbitcoin-explorer";
version = "3.5.0";
2017-01-02 19:13:33 +00:00
in stdenv.mkDerivation {
name = "${pname}-${version}";
2017-12-21 00:25:42 +00:00
src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
sha256 = "033nrdzrha4kypxk4biixjsbjd16r4m2mjvpid4gdj5hzbbj1p93";
2017-01-02 19:13:33 +00:00
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2017-12-21 00:25:42 +00:00
buildInputs = [ libbitcoin-client libbitcoin-network ];
2017-01-02 19:13:33 +00:00
2017-12-21 00:25:42 +00:00
enableParallelBuilding = true;
2017-01-02 19:13:33 +00:00
configureFlags = [
2017-12-21 00:25:42 +00:00
"--with-tests=no"
2017-01-02 19:13:33 +00:00
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
"--with-bash-completiondir=$out/share/bash-completion/completions"
];
meta = with lib; {
2017-01-02 19:13:33 +00:00
description = "Bitcoin command line tool";
homepage = "https://github.com/libbitcoin/libbitcoin-explorer";
2017-01-02 19:13:33 +00:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ asymmetric ];
2017-01-02 19:13:33 +00:00
2017-12-21 00:25:42 +00:00
# AGPL with a lesser clause
2017-01-02 19:13:33 +00:00
license = licenses.agpl3;
};
}