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
|
2022-11-27 09:42:12 +00:00
|
|
|
, gmp
|
2020-04-24 23:36:52 +00:00
|
|
|
, withGui
|
|
|
|
, qtbase ? null
|
|
|
|
, qttools ? null
|
|
|
|
, wrapQtAppsHook ? null
|
|
|
|
}:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vertcoin";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "0.18.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
name = pname + toString (optional (!withGui) "d") + "-" + version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname + "-project";
|
|
|
|
repo = pname + "-core";
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "2bd6dba7a822400581d5a6014afd671fb7e61f36";
|
|
|
|
sha256 = "ua9xXA+UQHGVpCZL0srX58DDUgpfNa+AAIKsxZbhvMk=";
|
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
|
|
|
|
] ++ optionals withGui [
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
boost
|
|
|
|
libevent
|
|
|
|
db4
|
|
|
|
zeromq
|
2022-11-27 09:42:12 +00:00
|
|
|
gmp
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ optionals withGui [
|
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
] ++ optionals withGui [
|
|
|
|
"--with-gui=qt5"
|
|
|
|
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A digital currency with mining decentralisation and ASIC resistance as a key focus";
|
|
|
|
homepage = "https://vertcoin.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|