forked from mirrors/nixpkgs
libbitcoin: 2.11.0 -> 3.4.0
This commit is contained in:
parent
61da89bc8a
commit
5b5e98b159
|
@ -1,24 +1,28 @@
|
||||||
{ stdenv, lib, fetchurl, pkgconfig, autoreconfHook
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, autoreconfHook
|
||||||
, boost, libsodium, czmqpp, secp256k1 }:
|
, boost, secp256k1 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "libbitcoin";
|
pname = "libbitcoin";
|
||||||
version = "2.11.0";
|
version = "3.4.0";
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/libbitcoin/libbitcoin/archive/v${version}.tar.gz";
|
owner = pname;
|
||||||
sha256 = "1lpdjm13kgs4fbp579bwfvws8yf9mnr5dw3ph8zxg2gf110h85sy";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1h6h7cxbwkdk8bzbkfvnrrdzajw1d4lr8wqs66is735bksh6gk1y";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
buildInputs = [ ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ secp256k1 ];
|
propagatedBuildInputs = [ secp256k1 ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--with-tests=no"
|
||||||
"--with-boost=${boost.dev}"
|
"--with-boost=${boost.dev}"
|
||||||
"--with-boost-libdir=${boost.out}/lib"
|
"--with-boost-libdir=${boost.out}/lib"
|
||||||
];
|
];
|
||||||
|
@ -29,8 +33,7 @@ in stdenv.mkDerivation {
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = with maintainers; [ chris-martin ];
|
maintainers = with maintainers; [ chris-martin ];
|
||||||
|
|
||||||
# https://wiki.unsystem.net/en/index.php/Libbitcoin/License
|
# AGPL with a lesser clause
|
||||||
# AGPL with an additional clause
|
|
||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue