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

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

42 lines
950 B
Nix
Raw Normal View History

2021-01-17 06:51:22 +03:00
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2017-12-20 19:41:31 +03:00
, boost, secp256k1 }:
2017-01-02 22:12:37 +03:00
let
pname = "libbitcoin";
version = "3.6.0";
2017-01-02 22:12:37 +03:00
in stdenv.mkDerivation {
name = "${pname}-${version}";
2017-12-20 19:41:31 +03:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1rppyp3zpb6ymwangjpblwf6qh4y3d1hczrjx8aavmrq7hznnrhq";
2017-01-02 22:12:37 +03:00
};
2021-01-17 06:51:22 +03:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2017-01-02 22:12:37 +03:00
propagatedBuildInputs = [ secp256k1 ];
2017-12-20 19:41:31 +03:00
enableParallelBuilding = true;
patches = [ ./fix-gcc11-compilation.patch ];
2017-01-02 22:12:37 +03:00
configureFlags = [
2017-12-20 19:41:31 +03:00
"--with-tests=no"
2017-01-02 22:12:37 +03:00
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];
meta = with lib; {
2017-01-02 22:12:37 +03:00
description = "C++ library for building bitcoin applications";
2021-12-28 21:10:22 +03:00
homepage = "https://libbitcoin.info/";
2017-01-02 22:12:37 +03:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ ];
2017-01-02 22:12:37 +03:00
2017-12-20 19:41:31 +03:00
# AGPL with a lesser clause
2017-01-02 22:12:37 +03:00
license = licenses.agpl3;
};
}