2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, openssl
|
|
|
|
, boost
|
|
|
|
, libevent
|
|
|
|
, autoreconfHook
|
|
|
|
, db4
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, protobuf
|
|
|
|
, hexdump
|
|
|
|
, zeromq
|
|
|
|
, withGui
|
|
|
|
, qtbase ? null
|
|
|
|
, qttools ? null
|
|
|
|
, wrapQtAppsHook ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "digibyte";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "7.17.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
name = pname + toString (lib.optional (!withGui) "d") + "-" + version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-27 09:42:12 +00:00
|
|
|
owner = "digibyte-core";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
sha256 = "zPwnC2qd28fA1saG4nysPlKU1nnXhfuSG3DpCY6T+kM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
hexdump
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ lib.optionals withGui [
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
boost
|
|
|
|
libevent
|
|
|
|
db4
|
|
|
|
zeromq
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ lib.optionals withGui [
|
2020-04-24 23:36:52 +00:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ lib.optionals withGui [
|
2020-04-24 23:36:52 +00:00
|
|
|
"--with-gui=qt5"
|
|
|
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "DigiByte (DGB) is a rapidly growing decentralized, global blockchain";
|
|
|
|
homepage = "https://digibyte.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|