Skip to content

Commit

Permalink
libbitcoin-{blockchain,consensus,database,node,server}: init at 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekpoz committed Nov 3, 2024
1 parent 0065f77 commit 0c8fbae
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 5 deletions.
37 changes: 37 additions & 0 deletions pkgs/tools/misc/libbitcoin/libbitcoin-blockchain.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, boost, libbitcoin, libbitcoin-consensus, libbitcoin-database, withConsensus ? true }:

stdenv.mkDerivation rec {
pname = "libbitcoin-blockchain";
version = "3.8.0";

src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
hash = "sha256-wLIqigDYTqP1yYbpPKWWaNW5JV1O1h4PFMsbu3MRTB0=";
};

nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedBuildInputs = [ libbitcoin libbitcoin-database ]
++ (lib.optionals withConsensus [ libbitcoin-consensus ]);

enableParallelBuilding = true;

configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
] ++ (lib.optionals (!withConsensus) [
"--with-consensus=no"
]);

meta = with lib; {
description = "Bitcoin blockchain library";
homepage = "https://libbitcoin.info/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ jacekpoz ];
# AGPL with a lesser clause
license = licenses.agpl3Plus;
};
}
34 changes: 34 additions & 0 deletions pkgs/tools/misc/libbitcoin/libbitcoin-consensus.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, boost, libbitcoin }:

stdenv.mkDerivation rec {
pname = "libbitcoin-consensus";
version = "3.8.0";

src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
hash = "sha256-MVzWMtgadOTEGksUym9jb2WVI6Hkj28IT3Twdp1N2ag=";
};

nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedBuildInputs = [ libbitcoin ];

enableParallelBuilding = true;

configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];

meta = with lib; {
description = "Bitcoin consensus library";
homepage = "https://libbitcoin.info/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ jacekpoz ];
# AGPL with a lesser clause
license = licenses.agpl3Plus;
};
}
34 changes: 34 additions & 0 deletions pkgs/tools/misc/libbitcoin/libbitcoin-database.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, boost, libbitcoin }:

stdenv.mkDerivation rec {
pname = "libbitcoin-database";
version = "3.8.0";

src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
hash = "sha256-Fx1xjfbf4VOula7TicyesYqac3rGBV1WssTYic0sJEk=";
};

nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedBuildInputs = [ libbitcoin ];

enableParallelBuilding = true;

configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];

meta = with lib; {
description = "Bitcoin high performance blockchain database";
homepage = "https://libbitcoin.info/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ jacekpoz ];
# AGPL with a lesser clause
license = licenses.agpl3Plus;
};
}
34 changes: 34 additions & 0 deletions pkgs/tools/misc/libbitcoin/libbitcoin-node.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, boost, libbitcoin, libbitcoin-blockchain, libbitcoin-network }:

stdenv.mkDerivation rec {
pname = "libbitcoin-node";
version = "3.8.0";

src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
hash = "sha256-jFlA1v8q59atUpPLgNF7oyHK92EQNS+NPm548oQ3Kx0=";
};

nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedBuildInputs = [ libbitcoin libbitcoin-blockchain libbitcoin-network ];

enableParallelBuilding = true;

configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];

meta = with lib; {
description = "Bitcoin full node";
homepage = "https://libbitcoin.info/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ jacekpoz ];
# AGPL with a lesser clause
license = licenses.agpl3Plus;
};
}
34 changes: 34 additions & 0 deletions pkgs/tools/misc/libbitcoin/libbitcoin-server.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, boost, libbitcoin, libbitcoin-node, libbitcoin-protocol }:

stdenv.mkDerivation rec {
pname = "libbitcoin-server";
version = "3.8.0";

src = fetchFromGitHub {
owner = "libbitcoin";
repo = pname;
rev = "v${version}";
hash = "sha256-AZWv1j1Vjj7vqSb5G8LPy4vi1uLiRJBQrlkk6UdT/JE=";
};

nativeBuildInputs = [ autoreconfHook pkg-config ];
propagatedBuildInputs = [ libbitcoin libbitcoin-node libbitcoin-protocol ];

enableParallelBuilding = true;

configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];

meta = with lib; {
description = "Bitcoin full node and query server";
homepage = "https://libbitcoin.info/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ jacekpoz ];
# AGPL with a lesser clause
license = licenses.agpl3Plus;
};
}
25 changes: 20 additions & 5 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28161,19 +28161,34 @@ with pkgs;

json-plot = callPackage ../applications/graphics/json-plot { };

libbitcoin = callPackage ../tools/misc/libbitcoin/libbitcoin.nix {
libbitcoin = callPackage ../tools/misc/libbitcoin/libbitcoin.nix {
boost = boost175; # fatal error: 'boost/interprocess/detail/posix_time_types_wrk.hpp' file not found
};
libbitcoin-protocol = callPackage ../tools/misc/libbitcoin/libbitcoin-protocol.nix {
libbitcoin-protocol = callPackage ../tools/misc/libbitcoin/libbitcoin-protocol.nix {
boost = boost175;
};
libbitcoin-client = callPackage ../tools/misc/libbitcoin/libbitcoin-client.nix {
libbitcoin-client = callPackage ../tools/misc/libbitcoin/libbitcoin-client.nix {
boost = boost175;
};
libbitcoin-network = callPackage ../tools/misc/libbitcoin/libbitcoin-network.nix {
libbitcoin-network = callPackage ../tools/misc/libbitcoin/libbitcoin-network.nix {
boost = boost175;
};
libbitcoin-explorer = callPackage ../tools/misc/libbitcoin/libbitcoin-explorer.nix {
libbitcoin-explorer = callPackage ../tools/misc/libbitcoin/libbitcoin-explorer.nix {
boost = boost175;
};
libbitcoin-blockchain = callPackage ../tools/misc/libbitcoin/libbitcoin-blockchain.nix {
boost = boost175;
};
libbitcoin-consensus = callPackage ../tools/misc/libbitcoin/libbitcoin-consensus.nix {
boost = boost175;
};
libbitcoin-database = callPackage ../tools/misc/libbitcoin/libbitcoin-database.nix {
boost = boost175;
};
libbitcoin-node = callPackage ../tools/misc/libbitcoin/libbitcoin-node.nix {
boost = boost175;
};
libbitcoin-server = callPackage ../tools/misc/libbitcoin/libbitcoin-server.nix {
boost = boost175;
};

Expand Down

0 comments on commit 0c8fbae

Please sign in to comment.