monero: cleanup
This commit is contained in:
parent
0c98c6bbc4
commit
6d1dd6af04
|
@ -4,17 +4,9 @@
|
||||||
, zeromq, pcsclite, readline, libsodium, hidapi
|
, zeromq, pcsclite, readline, libsodium, hidapi
|
||||||
, randomx, rapidjson
|
, randomx, rapidjson
|
||||||
, CoreData, IOKit, PCSC
|
, CoreData, IOKit, PCSC
|
||||||
, trezorSupport ? true
|
, trezorSupport ? true, libusb1, protobuf, python3
|
||||||
, libusb1 ? null
|
|
||||||
, protobuf ? null
|
|
||||||
, python3 ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
assert stdenv.isDarwin -> IOKit != null;
|
|
||||||
assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ];
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "monero";
|
pname = "monero";
|
||||||
version = "0.17.2.0";
|
version = "0.17.2.0";
|
||||||
|
@ -45,8 +37,8 @@ stdenv.mkDerivation rec {
|
||||||
zeromq pcsclite readline
|
zeromq pcsclite readline
|
||||||
libsodium hidapi randomx rapidjson
|
libsodium hidapi randomx rapidjson
|
||||||
protobuf
|
protobuf
|
||||||
] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ]
|
] ++ lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ]
|
||||||
++ optionals trezorSupport [ libusb1 protobuf python3 ];
|
++ lib.optionals trezorSupport [ libusb1 protobuf python3 ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
|
@ -54,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||||
"-DBUILD_GUI_DEPS=ON"
|
"-DBUILD_GUI_DEPS=ON"
|
||||||
"-DReadline_ROOT_DIR=${readline.dev}"
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
||||||
"-DRandomX_ROOT_DIR=${randomx}"
|
"-DRandomX_ROOT_DIR=${randomx}"
|
||||||
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
|
] ++ lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
|
||||||
|
|
||||||
outputs = [ "out" "source" ];
|
outputs = [ "out" "source" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue