monero: export patched sources
This is needed to build monero-gui without duplicating code.
This commit is contained in:
parent
cc90474581
commit
59fe3e87c3
@ -5,9 +5,9 @@
|
|||||||
, randomx, rapidjson
|
, randomx, rapidjson
|
||||||
, CoreData, IOKit, PCSC
|
, CoreData, IOKit, PCSC
|
||||||
, trezorSupport ? true
|
, trezorSupport ? true
|
||||||
, libusb1 ? null
|
, libusb1 ? null
|
||||||
, protobuf ? null
|
, protobuf ? null
|
||||||
, python3 ? null
|
, python3 ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
# remove vendored libraries
|
# remove vendored libraries
|
||||||
rm -r external/{miniupnp,randomx,rapidjson,unbound}
|
rm -r external/{miniupnp,randomx,rapidjson,unbound}
|
||||||
|
# export patched source for monero-gui
|
||||||
|
cp -r . $source
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
@ -52,6 +54,8 @@ stdenv.mkDerivation rec {
|
|||||||
"-DRandomX_ROOT_DIR=${randomx}"
|
"-DRandomX_ROOT_DIR=${randomx}"
|
||||||
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
|
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
|
||||||
|
|
||||||
|
outputs = [ "out" "source" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Private, secure, untraceable currency";
|
description = "Private, secure, untraceable currency";
|
||||||
homepage = "https://getmonero.org/";
|
homepage = "https://getmonero.org/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user