2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, cmake, pkgconfig
|
2020-06-15 15:56:04 +00:00
|
|
|
, boost, miniupnpc, openssl, unbound
|
2020-04-24 23:36:52 +00:00
|
|
|
, zeromq, pcsclite, readline, libsodium, hidapi
|
2020-08-20 17:08:02 +00:00
|
|
|
, protobuf, randomx, rapidjson, libusb-compat-0_1
|
2020-04-24 23:36:52 +00:00
|
|
|
, CoreData, IOKit, PCSC
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert stdenv.isDarwin -> IOKit != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "monero";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.16.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monero-project";
|
|
|
|
repo = "monero";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "0n2cviqm8radpynx70fc0819k1xknjc58cvb4whlc49ilyvh8ky6";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost miniupnpc openssl unbound
|
2020-06-15 15:56:04 +00:00
|
|
|
zeromq pcsclite readline
|
2020-04-24 23:36:52 +00:00
|
|
|
libsodium hidapi randomx rapidjson
|
2020-08-20 17:08:02 +00:00
|
|
|
protobuf libusb-compat-0_1
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
2020-06-15 15:56:04 +00:00
|
|
|
"-DUSE_DEVICE_TREZOR=ON"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DBUILD_GUI_DEPS=ON"
|
|
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Private, secure, untraceable currency";
|
|
|
|
homepage = "https://getmonero.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ehmry rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|