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 4, 2024
1 parent 0065f77 commit 8a65e38
Show file tree
Hide file tree
Showing 6 changed files with 262 additions and 5 deletions.
54 changes: 54 additions & 0 deletions pkgs/by-name/li/libbitcoin-blockchain/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
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;
};
}
44 changes: 44 additions & 0 deletions pkgs/by-name/li/libbitcoin-consensus/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
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;
};
}
44 changes: 44 additions & 0 deletions pkgs/by-name/li/libbitcoin-database/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
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;
};
}
50 changes: 50 additions & 0 deletions pkgs/by-name/li/libbitcoin-node/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
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;
};
}
50 changes: 50 additions & 0 deletions pkgs/by-name/li/libbitcoin-server/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
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 ../by-name/li/libbitcoin-blockchain/package.nix {
boost = boost175;
};
libbitcoin-consensus = callPackage ../by-name/li/libbitcoin-consensus/package.nix {
boost = boost175;
};
libbitcoin-database = callPackage ../by-name/li/libbitcoin-database/package.nix {
boost = boost175;
};
libbitcoin-node = callPackage ../by-name/li/libbitcoin-node/package.nix {
boost = boost175;
};
libbitcoin-server = callPackage ../by-name/li/libbitcoin-server/package.nix {
boost = boost175;
};

Expand Down

0 comments on commit 8a65e38

Please sign in to comment.