monero: export patched sources

This is needed to build monero-gui without duplicating code.
This commit is contained in:
rnhmjoj 2020-10-08 00:03:11 +02:00
parent cc90474581
commit 59fe3e87c3
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450
1 changed files with 7 additions and 3 deletions

View File

@ -5,9 +5,9 @@
, randomx, rapidjson
, CoreData, IOKit, PCSC
, trezorSupport ? true
, libusb1 ? null
, protobuf ? null
, python3 ? null
, libusb1 ? null
, protobuf ? null
, python3 ? null
}:
with stdenv.lib;
@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
postPatch = ''
# remove vendored libraries
rm -r external/{miniupnp,randomx,rapidjson,unbound}
# export patched source for monero-gui
cp -r . $source
'';
nativeBuildInputs = [ cmake pkgconfig ];
@ -52,6 +54,8 @@ stdenv.mkDerivation rec {
"-DRandomX_ROOT_DIR=${randomx}"
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
outputs = [ "out" "source" ];
meta = with stdenv.lib; {
description = "Private, secure, untraceable currency";
homepage = "https://getmonero.org/";